|
bash
Create Resized and Renamed Non-Retina Images with Sed & ImageMagick »
|
ls | sed -n 's/\(.*\)\(@2x\)\(.*\)/convert "\1\2\3" -resize 50% "\1\3"/p' | sh |
|
Linux
Copy Matching Files in All Subfolders to Target (Flatten) »
|
find . -iname *.png -print | xargs -I file cp file ./ |
|
bash
Piping Two Inputs into a Linux Shell Command »
|
diff <(git log --oneline origin) <(git log --oneline) |
|
Linux
Search and replace on files from the BASH command line… »
-i is for writing the result back to the file. -e...
|
# All files...
sed -ie "s/IM/MC/g" *
# More flexibility
find ./ -name "*.m" | xargs sed -ie "s/IM/MC/g" *
|