Using split and tar to get the compressed files
My code is:
Code:
nohup tar -zcvf *.cas | split -d -b 200m & Quote:
But strange thing is the size of 3d_mesh-0100.cas became bigger, and nothing else happens. What I want is to put into all the *.cas into file and then spilt into documents. Then how can I do it? |
Quote:
Code:
nohup tar -zcvf - *.cas | <....> |
Quote:
And I use the code well Code:
nohup tar -zcvf - *.cas | split -d -b 200m - film_ & |
split and cat and unzip error?
I use the code to package files and split
Code:
nohup tar -zcvf - *.cas | split -d -b 200m - film_ & Quote:
code : merge Code:
cat film_* > cas_bak.tar.gz code: extract it Code:
tar -zxvf cas_bak.tar.gz Quote:
|
If you try
Code:
tar -zcvf - *.cas Code:
3d_mesh-0100.cas Code:
tar -cvf - *.cas | gzip -cf | split -d -b 1m - film_ |
Quote:
Code:
tar -cvf - *.cas | gzip -cf | split -d -b 200m - film_ it shows: Quote:
|
What is the command that you used to concatenate the split files?
|
And did you have a backup of that "3d_mesh-0100.cas" file? Otherwise it looks like it was overwritten after your first command...
|
Quote:
And I use this code to "merge" Code:
cat film_* > cas_bak.tar.gz |
It's difficult to debug this issue without having the same files. I tried what suggested on my system and it worked flawlessly. Anyway, first please tell us what is your operating system and which version of tar you have. Then, please try one step at a time, instead of the pipeline and check the results at each step. That is:
Code:
tar -cvf tmp.tar *.cas |
Quote:
tar:tar (GNU tar) 1.15.1 And it is Ok,based the command saved in shell Code:
mkdir splitfile |
All times are GMT -5. The time now is 12:54 PM. |