Bash shell scripts for various purposes
- Shell script to move files around. Simple example of shell-awk-shell pipe chain.
- Shell script to move files around. A slightly more complex example of shell-awk-shell pipe chain.
- Shell script to extract data from logfiles by calling awk script for each participant. Example of a simple wrapper script for repeating identical operations on several files.
- Shell script to get and process music data using LastFM API. Example of wget, XML data munging using xmlstarlet, piping to other utilities...in short, an illustration of a point or two of the Unix Philosophy.
- Shell script to get and process music data using LastFM API. A shorter version using a couple of other functions from the API.
- Shell script to get and process music data using Spotify API. Example of curl.
- Shell script to query the Celex database for biphone frequencies. Example of wget utility and shell read command.
- Shell script to query the Celex database for word frequencies. Similar to the previous example.
- Shell script to produce synthesised audio of text using say.
- Shell script to rename files by removing special characters from filenames
- Shell script that calls an awk script for repeated operations. Another example of a wrapper script.
- Shell script that calls an R script by supplying input and output file names to it. In essence, a couple of placeholder strings in the R script is replaced with the input and output filenames, and the modified R script stored temporarily and run. (Original script in a different form inherited from an unknown author at MPI Leipzig; adapted by me for this purpose).
Page under construction.......
Any and all scripts available on these pages or snippets thereof can be freely copied, reused, redistributed and modified, provided it is exclusively for non-commercial scientific research purposes. Unless otherwise explicitly mentioned in the header block, none of the scripts or snippets provided on these pages involve copyrighted material from or intellectual property of other unacknowledged sources.
Presentation is a registered trademark, owned by Neurobehavioral Systems, Inc., CA, USA.
Whilst the scripts and code snippets provided here are intended to be useful in the broader pursuit of science, they are provided 'as is', with no warranty of any sort, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author(s) or the Institute be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the scripts provided on these pages or the use or other dealings in the scripts. Comments, criticisms and suggestions for improvements are always welcome. Please get in touch with Dr. R. Muralikrishnan in this regard. Copyleft (ↄ) R. Muralikrishnan (only for the scripts and code snippets on these pages).