June 2017
Beginner
502 pages
11h 26m
English
Used with find -exec, this holds the full path to the file located by find. It is not a shell builtin, and the semicolon at the end of the command sequence must be escaped to avoid shell interpretation:
find . -name *.txt -exec cp {} copy.txt \;zarrelli:~$ ls -lah test.txt copy.txt -rw-r--r-- 1 zarrelli zarrelli 5 Feb 21 16:12 copy.txt-rw-r--r-- 1 zarrelli zarrelli 5 Feb 16 14:07 test.txt
Read now
Unlock full access