Find and copy all files with ‘.txt’ extention from a directory to another
find /home/binnyva -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents
Byte sized tech know-how.
Find and copy all files with ‘.txt’ extention from a directory to another
find /home/binnyva -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents
Copyright © 2024 Txt