I have a directory say \"DIR\" which contains so many directories say \"A\", \"B\" and \"C\" I want to tar DIR without including \"C\" in it so that DIR.tar开发者_如何学C.gz does not contain the dire
I need to FTP to a server, tar all of the files in a directory, then FTP the tar to a different server.
I tried this: DIR=/path/tar/*.gz if [ \"$(ls -A $DIR 2> /dev/null)\" =开发者_如何学C= \"\" ]; then
there is a simple way to get all files inside a spe开发者_Python百科cifically dir (dir that is in a tar file) one after another as a same file-like object?
Ok, so I know i can use: wget -r <web开发者_C百科site> > <file> to get a webpage and save it. My question is, how would i use cron and wget to get a webpage on an hourly, or even min
I would like to verify the existence of a given file in a tar archive with Python before I get it as a file-like object. I\'ve tried it with isreg(), but probably I do something wrong.
While using tar->write() I am getting errors while using complex file names. The code is: my $filename= $archive_type.\"_\".$from_date_time.\"_\".$to_date_time.\"tar\";
Basically I just want to tar all the files in a directory, but not get all the parent directories in the archive.
开发者_运维百科Basically I need to run a Unix script to find all folders in the directory /fss/fin, if itexists; then I have tar it and move to another directory /fs/fi.
I have a tarball, and i want to remove all .tcl, .bat , .log files except pkgIndex.tcl in it. if i do