grep -Pn 'Win_' `ls -1 *.ahk | grep -vPi 'Win|recall.*ahk' | awk '{printf $1 " "}'`
Showing posts with label script. Show all posts
Showing posts with label script. Show all posts
Sunday, 2 October 2011
Useful script for greping all files excluding those that match specific pattern
Saturday, 9 October 2010
Usefull windows batch script to convert all files in directory using ImageMagic
This little snippet desaturates, resizes to half and converts to png all files in given directory using ImageMagic.
F:\Canon\Textbook>for %file in (.\*) do convert %file -resize 50% -modulate 100,0 %file.png
Make sure that path to ImageMagic binaries is in your PATH environment variable.
Subscribe to:
Posts (Atom)