Posted by
gabriel on May 15th, 2011 in
Commands,
Linux |
0 comments
Sometime it happen that I need to find all certain type of file or directory from a folder and sub folders and delete it. An example is if you have to copy a project under svn and you want to clean all folder from “.svn” folder.
Via linux shell:
$ find /absolute/or/relative/path -type d -name ".svn" | xargs rm -r
If you have to delete file or folder with name first letter “A”:
$ find...
Posted by
gabriel on May 14th, 2011 in
Linux,
Utility |
0 comments
I use Imagemagick when I have a lot of pictures that need to be resized for being used on a website. From a shell, the command for resize a picture is:
$ mogrify -resize <width_pixel>x<height_pixel> file.jpg
For resize all pictures inside a folder, via shell move to the folder and give:
$ mogrify -resize <width_pixel>x<height_pixel> *
Some time pictures are in more sub-folder, and is not very...