manniwood.com
Home
Browse
A nice .bashrc script
Current date (now) as seconds since epoch
Decrementing dates in bash
Delete all files created after a certain time
Find files with different extensions
Find the exit status of programs in a pipeline:
Get the directory that your script lives in
Good lines to put at the top of every bash file:
How to get a one row select into bash variables named for each column in the row
How to get a single scalar select value into a shell variable
How to iterate through a result set from a bash script
How to survive with vi commands in someone else's Bash session
How to use bash to do a job in chunks using a control table
Make running lots of multi-line sql statements prettier
Recursively remove empty directories:
Remove a file that starts with a hyphen
Seconds since epoch as date
Send mail from a shell script on exit/death
Set the title of your terminal from Bash
Use ex to remove the first line of a file: