Pages

Thursday, July 18, 2013

Using find in Linux


1. To find out all the Mp3 files in the system and to move /home/songs

# find / -name '*.mp3' -print -exec mv '{}' ~/songs \;

2. To print out all the Mp3 file names with odd charecters ( Doesn't matter whether upper or lower case)

# find . -name '*.mp3' -print0 | xargs -i -0 cp '{}' /back

3

No comments:

Post a Comment