How to find files and tar them together
Answer:
You can use the following command to find files and tar them together
# find . -type f -print0 | tar -czvf backup.tgz --null -T -
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to find files and tar them together
Answer:
You can use the following command to find files and tar them together
# find . -type f -print0 | tar -czvf backup.tgz --null -T -
Show changed files in git log
Answer:
"git log" will not show the changed file in the output, to show it, use
# git log --stat
How to change filename case of all files in a directory
Answer:
If you want to change the case of filename of all files in a directory, e.g. change to all UPPER case, you can use:
# rename 'y/a-z/A-Z/' *
Batch resize images using imagemagick
Answer:
When you've installed imagemagick, you can mass resize images using the "mogrify" command, e.g.
# mogrify -resize 320x240 *.jpg
Use Perl to split string instead of awk
Answer:
If you know Perl well, there is no need to use awk to do string processing such as string splitting, it is easy with Perl also, e.g.
# echo "foo,bar,k3" | perl -F',' -lane 'print $F[1]'
bar