Hi All,
is there any option to tar the files and remove it simultaneously.
Please give me an example or syntax.
thanks in advance.
tar and remove files simultaneously.
Moderator: drgrussell
-
- Site Admin
- Posts: 426
- Joined: Sat Feb 12, 2005 8:57 pm
- Are you a robot or a human?: Human
Re: tar and remove files simultaneously.
--remove-files
The man command is your friend...
Gordon.
The man command is your friend...
Code: Select all
[gordon]$ ls
a b
[gordon]$ ls -l
total 0
-rw-rw-r-- 1 gordon gordon 0 2009-05-06 17:14 a
-rw-rw-r-- 1 gordon gordon 0 2009-05-06 17:14 b
[gordon]$ tar cvf out.tar --remove-files a b
a
b
[gordon]$ ls
out.tar
[gordon]$
Who is online
Users browsing this forum: Bing [Bot] and 1 guest