tonytraductor (tonytraductor) wrote,
tonytraductor
tonytraductor

  • Location:
  • Mood:
  • Music:

mv screenshots to pix/screenshots

Screenshot pictures tend to pile up in my /home, so I wrote this:
#!/bin/bash

# move pix or die, damn it

if [ ! -f *.jpg ]
then
echo no pix d00d
exit
else
echo THESE
ls -1 *.jpg
echo are ALL pix, d00d.
for i in $(ls *.jpg)
do
mv $i pix/screenshots
echo I just moved $i to the screenshots dir
done
echo all done d00d
fi
exit
Tags: bash, gnu, linux, script
Subscribe

  • the Debian Administrator's Handbook

    Read the Debian Administrator's Handbook online. Written by two Debian developers — Raphaël Hertzog and Roland Mas — the Debian…

  • how real men edit html

    Editing an html file with nano. I spent about an hour tweaking the html syntax highlighting in my .nanorc to make this work nicely. Isn't it…

  • Co0l Linux trick: Hide files in an image

    Here's a cool trick I just learned. You can, in a gnu/linux system, hide files within an image file. Why you might want to do so, of course, is open…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments