Unix/Linux Go Back    

Hpux find tar gzip


Kindly Note - This is a Single User Post by Forum Member RudiC Regarding:
Hpux find tar gzip.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 08-08-2016   -   Original Discussion by royinfo.alain
RudiC's Unix or Linux Image
RudiC RudiC is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 18 March 2018, 5:41 AM EDT
Location: Aachen, Germany
Posts: 12,309
Thanks: 387
Thanked 3,809 Times in 3,504 Posts
Hmmm - isn't it that tar expects the files to create an archive from on the command line? Doesn't it use stdin only when extracting from a data stream?

So xargs WOULD be needed to supply the file names coming from find on stdin as parameters on the command line to tar.

Above proposal yields

tar: no files or directories specified

on FreeBSD, and

tar: Cowardly refusing to create an empty archive

on my linux machine.
The Following User Says Thank You to RudiC For This Useful Post:
royinfo.alain (08-08-2016)