09-23-2009
Do you have -u flag?
for example:
tar -u four.txt -f file1.tar
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I delete a file from an existing Solaris tar file ? (not gtar) (2 Replies)
Discussion started by: avnerht
2 Replies
2. UNIX for Dummies Questions & Answers
Dear All,
I need to add a header of one line to an already existing file.
I know that it can be achieved by the following:
echo "Header" > newfile
cat file1 >> newfile
But my problem is that file is huge and there is no space for creating a new file every time. Is there a way that I can... (5 Replies)
Discussion started by: shash
5 Replies
3. Shell Programming and Scripting
not required this time (36 Replies)
Discussion started by: Sandeep_Malik
36 Replies
4. UNIX for Dummies Questions & Answers
Hello,
What is the command to add files to an existing tar file.
Thanks, (5 Replies)
Discussion started by: Nomaad
5 Replies
5. Shell Programming and Scripting
Hi Everybody,
I have an layout file like below
f1 1 char 10,
f2 11 char 2,
f3 13 char 1,
lineend 14 char 1
Their I need to add a new field which would be like
f5 char 3,
f6 char 2
The o/p should be
f1 1 char 10,
f2 11 char 2,
f3 13 char 1,
f5 14 char 3,
f6 17 char 2 (3 Replies)
Discussion started by: mr_manii
3 Replies
6. Shell Programming and Scripting
Hi....
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as... (1 Reply)
Discussion started by: Netrock
1 Replies
7. Shell Programming and Scripting
Hi All ,
Kindly help me with this soln
awk '{printf "%s %7s \n", $1,$c}' infile
where
value of variable c I am externally giving input
But executing the above command shows all the columns of infile where as I want only 1st column of infile and 2nd column should print value c (8 Replies)
Discussion started by: Pratik4891
8 Replies
8. Shell Programming and Scripting
I have a file with 50,000 records in it, i have a requirement to use the same 50,000 records and add them 4 times to the same file to make a total of 200,000 records. I was wondering how to do this using ksh. Any help is greatly appreciated. (2 Replies)
Discussion started by: vpv0002
2 Replies
9. Shell Programming and Scripting
Hi all,
I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it.
I am using the below command to tar files if the file does not exist.
tar zcvf <tar file name> <Files to append>
However, if want to... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
10. Shell Programming and Scripting
I have a data file that looks like this:
0.01 1 3822 4.97379915032e-14 4.96982253992e-09 0
0.01 3822 1 4.97379915032e-14 4.96982253992e-09 0
0.01 2 502 0.00993165137406 993.165137406 0
0.01 502 2 0.00993165137406 993.165137406 0
0.01 4 33 0.00189645523539 189.645523539 0
0.01 33 4... (3 Replies)
Discussion started by: kayak
3 Replies