To find all files matching a specific pattern and move them to a specified sub-folder, this command will be handy:
# find . -type f -exec grep -q 'search_string' {} \; -exec mv {} sub_folder_location/ \;
Thursday, November 27, 2008
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment