d
Amit DhamuSoftware Engineer
 

Search in files and move to directory

1 minute read 00000 views

Move any file containing the provided search time to a directory.

❯ ack "SEARCH_TERM" -l | xargs -I{} mv {} <FOLDER_NAME>

❯ ack "color: blue;" -l | xargs -I{} mv {} css