Archive for category Code

pdfname

A quick script to rename a pdf file based on the 1st line on the 1st page (Generally a title of some sort). We all get pdfs occassionally that have some weird name like css223.pdf.. this will fix that, batch, in the PWD. #!/bin/bash #—————————————————— # Written by Stephen Coetzee, 22/06/2009 # DESC: A simple [...]

, , , , , , , , ,

2 Comments

Trash bin

I needed something to manipulate my trash bin, (I don’t like saying recycle bin. Too Windowsy ) so I wrote this little script, its not very featureful, but it does all I need it to do. trash.sh : #!/bin/bash path=”${HOME}/.local/share/Trash” let count=”$(ls -la ${path}/files/ | wc -l)-3″ if [ $count = '0' ]; then echo [...]

, , , , ,

No Comments