Unix/Linux Go Back    



Hpux find tar gzip

HP-UX




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
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 19 October 2017, 11:23 AM EDT
Location: Aachen, Germany
Posts: 11,477
Thanks: 310
Thanked 3,560 Times in 3,276 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

Code:
tar: no files or directories specified

on FreeBSD, and

Code:
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)