dears
what i need to make is
cp -irp file_name filename
tar cvf filename.tar filename
gzip filename.tar
in one commane using exec
it that prossible and how can i do that
dears
what i need to make is
cp -irp file_name filename
tar cvf filename.tar filename
gzip filename.tar
in one commane using exec
it that prossible and how can i do that
you want to overwrite all file to a file name called filename ?
find . -name "file_name*" -exec cp -irp {} filename \; ; tar cvf - filename | gzip > filename.tar.gz
What's the benefit of doing this in "one line" and using exec ?
Wouldn't it be easier to make a small script and call that?
You can run it on remote machines over ssh since it's a single line command.
Was it the purpose ?
thanks all
ygemici : thanks for your command really it is very nice
System Shock : i hope i could do that but i can't written script - i don't have concept of programming
---------- Post updated at 10:10 AM ---------- Previous update was at 10:03 AM ----------
i am try this command but it doesn't work
$ tar cvf xxmasrawy.tar xxmasrawy -exec gzip