11-01-2004
Using single quotes around the filename, and escaping the dollar characters would have identical effects, so it doesn't matter which method you choose.
All you'd need to ensure is that you don't mv (i.e. rename) the file to an already existing filename.
Cheers
ZB
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello!
I wish to extract the pid where CPU is above 10%
last pid: 22621; load averages: 4.71, 5.04, 5.13 15:08:34
221 processes: 212 sleeping, 2 running, 1 stopped, 6 on cpu
CPU states: %... (3 Replies)
Discussion started by: Lomic
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a bunch of images (8k) in several directories. I want to tar these directories up and unzip them to development and production with the same path.
Example:
/about/images/sample_01
/about/images/sample_02
/about/images/sample_03
/about/images/lorem_ipsum... (4 Replies)
Discussion started by: andylee80
4 Replies
3. Shell Programming and Scripting
Hi guys,
I have got a file which doesn't have the same number of columns in each line. I would like to print the second column and the one that begins with 33= and has some numbers after '33='
Can you please help me asap?
Cheers (7 Replies)
Discussion started by: alexandra_ola
7 Replies
4. Shell Programming and Scripting
Hi,
This must be simple but I can't get it to work. I have the follow code to insert the contents of a file into an array and then I want to print the value of a container where all of the records in another container within the array start with 33 (that's not all I want to do but it is all I... (2 Replies)
Discussion started by: Donkey25
2 Replies
5. Shell Programming and Scripting
Hello, I'm looking for sed solution to change
...
<li>keyword</li>
<li>keyword
<li>keyword</li>
<li>keyword
<li>keyword</li>
...
to
...
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
...
I.e., if lines beginning with <li> do not end with... (3 Replies)
Discussion started by: pioavi
3 Replies
6. Shell Programming and Scripting
Hi,
I have a file with below format
myfile.txt
aa
aa1
aa2
qq
aa4
ghs
aa6
bbc
gdf
I m looking to create a file where lines begins with aa.
myfile1.txt
aa
aa1
aa2 (4 Replies)
Discussion started by: Litu1988
4 Replies
7. UNIX for Beginners Questions & Answers
Hi Team,
i need to list only those number from the input file which begin with 24
input file is
2412
2413
2456
2134
2134
2244
2526
expected output i want is
2412
2413
2456 (6 Replies)
Discussion started by: scriptor
6 Replies