I have a tar file with name DTT012_GP_20140207.tar and many more with different names of different sizes ranging from 1GB to 4GB.
Now my requirement is to extract/not extract these files and then divide it into various parts of size 500MB and save it with different names and then compress it(zip/tar).
(If 1GB tar file, it should divide into 2 500MB,
If 1.6GB file, it should divide into 2 500MB and the remanning 100MB into another)
I have tried this
The output files generated come with name DTT012_GP_20140207_part.tara , DTT012_GP_20140207_part.tarb , DTT012_GP_20140207_part.tarc
Please let me know if I am doing it right and also how do i name it in increasing order as part1,part2,part3??
Last edited by bartus11; 02-09-2014 at 10:05 AM..
Reason: Please use [code][/code] tags.
I need to compress and tar a couple files in a directory, but I also want the original files unchanged, ie
if I compress a1.cpp , then a1.cpp becomes a1.cpp.z,
but what I want after running the compress utility is to have both
a1.cpp as it is and
a1.cpp.z
and then tar a1.cpp.z to an... (4 Replies)
Is there a reasonable maximum limit for tar file sizes? I want to transfer a pile of files from one server to another but have restricted means, so tarring them first will probably be best... but how big can I go - both for the file format itself and for the operating system (linux) to handle? ... (7 Replies)
i want know how to compress and uncompress file using unix,
compress uncompress,zip,unzip,rar,unrar,how its work and more about this.:confused: (1 Reply)
Hi,
When i am tar the file particular ,csv file format in a folder i am receiving the error
Command:
tar cf New_data.tar /new/file/mari/getdata/small/*.xml
Arguements too long
But sometimes
i am able to compress other folder but the tar folder contains all the file format and... (10 Replies)
I know there is a way to tar up directory and sub-directories and have it compressed all in one command but but the syntax escapes me.
I seem to re-call something like this:
tar -cvf /tmp/file.tar - | compress ?
Can somebody please provide me with the syntax on how to tar/compress
and... (6 Replies)
Hi,
I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good files into a tar.gz file (tar cvfz good.tar.gz *.goog.out )
Is there a way I can automate this... (4 Replies)
Sorry guys.. dont know where to put this..
currently I am cleaning up system dump on our aix machine
and I wanted to set zero the 1st 20 large file but before doing
that I wanted to create some backup.
is there any command that can compress all these file same time?
tar syntax file?
... (2 Replies)
I am pretty new to scripting, so I appreciate your advice in advance.
The problem:
100 directories each containing 2 files that have the same extension with random names. The only attribute that discriminates the files is size. I would like to write a script that compares the files for size... (6 Replies)
Hello,
in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)