Hello All,
I would like to create a tar archive for all files with extension *.htm only under a directory ( including of the *.htm files under directories of the directory). May I know the command line should I key in ?
I just wonder on how to use the tar command with find command where I can search for files with *.htm with command "find directory -name \*.htm".
Kindly advise.
:lol:
UNIX command
UNIX command
Try something like:
[quote]find . -type f -name "*.html" | xargs tar rvf /YOUR/TAR/FILE.tar[/quote]
Is the easy command line "quickie"
[quote]find . -type f -name "*.html" | xargs tar rvf /YOUR/TAR/FILE.tar[/quote]
Is the easy command line "quickie"