10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am using KSH.
I am trying to check if the output file is empty or not.
I tried with ] but what i see is my file is empty but still manages to have a size of 1 instead of 0.
But my file doesnot have anything its empty.
I am not sure how to check this.
can any one help? (10 Replies)
Discussion started by: Sharma331
10 Replies
2. Shell Programming and Scripting
Hi,
In a file we have the following data like as below
abcdef="cfg-1-15"
bmmdda-g-45-2
yhdiao"rtg-1-df-34"
I need a sed/awk command to replace the above string with empty.
Thx, (1 Reply)
Discussion started by: kirankumar
1 Replies
3. Shell Programming and Scripting
Hi Guys.
Please can you help me to add 0 values. Starting in column 121
Imput file
A 4175.0 8055.01211 75 1 -2172671 77 45 16 457626.4 2609265.1 131.3 1090 102 1 1T N/A124 15 0.8 1051670971100000
A 4175.0 8055.012 7 75 2 -5204072 78 43 25... (10 Replies)
Discussion started by: jiam912
10 Replies
4. Shell Programming and Scripting
Hi
I would like to replace empty string with a particluar value, any suggessions with awk ?
my input file is not delimited with any delimiters
input
52001073M8000000004567777
5200107 000000004567778
5200107 000000004567779
52001073M8000000004567789
Expected output... (5 Replies)
Discussion started by: selvankj
5 Replies
5. Shell Programming and Scripting
Hi Expert,
Kindly request for your expertise in this matter.
I have below output:
12.125.124.173,xx1.common.com
12.125.124.174,xx2.common.com
12.125.124.175,xx3.common.com
12.125.124.176,
12.125.124.177,
12.125.124.178,
12.125.124.179,xx4.common.com
12.125.124.180,xx5.common.com... (8 Replies)
Discussion started by: regmaster
8 Replies
6. Shell Programming and Scripting
Hi all,
I need to replace certain robots.txt files with an empty file. I use the following to find the files I want to empty out:
find /Sites -type f -name "robots.txt" -exec grep -il "STAGE" {} \;
(finds all robots.txt files which contain the string 'STAGE')
Now what do I add to this... (3 Replies)
Discussion started by: Evert
3 Replies
7. Shell Programming and Scripting
Hi,
i have the log attached. Actually i want the long space just become 1 space left
like this :
Rgds, (12 Replies)
Discussion started by: justbow
12 Replies
8. Shell Programming and Scripting
Hi suppose I have a csv file like this
count,1977,1978,1979
usa, , , blue
japan, red, yellow,green
india, , yellow,blue
china, blue, yellow, green
I want the output to be(replace everything, including empty data, with the most recent data):
... (1 Reply)
Discussion started by: grossgermany
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Experts,
I want to print the lines whose third field in non-empty/blank space.
i.e.
INPUT FILE/B]
dcdccghjrry0yd cont
dcdccttrk820529 cont rdekedfsSCr
dcdccttrdky2d0y cont rdekedfsSC2 ... (3 Replies)
Discussion started by: krao
3 Replies
10. Shell Programming and Scripting
I need to pass an empty space in the command ="java ......... "
as one of the arguments where java calls some java command....
(It accepts it in windows as " ")
Thanks in advance
SD (2 Replies)
Discussion started by: shweta_d
2 Replies