- find
-
find . -type l -print | perl -nle '-e || print' - empty file
-
cat /dev/null >file or : >file # this does not fork a new process, since ":" is a builtin. - mv dir
-
(cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xpvf -) # Move entire file tree from one directory to another # [courtesy Alan Cox <a.cox@swansea.ac.uk>, with a minor change]
Hey! The above document had some coding errors, which are explained below:
- Around line 7:
-
=over without closing =back