Use find, and lsto find, and display
a sorted list of files:
In Terminal:
find <find arguments and options> -print0 2>/dev/null | xargs -0 ls <ls options>
Example:
Find all files in, and below the current directory where "Zabadak" is part of the file name and list them sorted by modification time with the latest modified file first:
Use tar to create a compressed file including the
relative path to all files in a subdirectory
Example:
Save a copy of all files from the "Cassette Tapes/The New Seekers/In Perfect Harmony/" subdirectory below "/Volumes/MUSIC_COLLECTION/Users/Christian/My Documents/My Music Original Files/" in a compressed file below "My Music Original Files/" in the home directory (below "~/My Music Original Files/"):
cd "/Volumes/MUSIC_COLLECTION/Users/Christian/My Documents/My Music Original Files"
tar -jcvf ~/"My Music Original Files/Cassette_Tapes~The_New_Seekers~In_Perfect_Harmony.tar.bz2" "Cassette Tapes/The New Seekers/In Perfect Harmony/"
[ 2018-07-15 ]
Use find, grep, and lsto
find, and display a sorted list of files containing a specific
string:
Example:
List all files ending on .pl or .pm found
recursively in the current directory (.) containing
the string use CL::ooDebug, and list them in long
format sorted in ascending order according to the latest
modification time (mtime):
Dette websted blev oprindeligt skabt til
Netscape 7.1 og testes regelmæssigt med de seneste versioner
af Firefox, Safari og Google Chrome på Mac OS X El Capitan.
Det vises IKKE korrekt i visse gamle browsere!
This site was originally designed for
Netscape 7.1 and is regularly tested with the latest versions
of Firefox, Safari, and Google Chrome on Mac OS X El Capitan.
It is NOT shown correctly in some old browsers!