9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have one file as it has the following format
S No Site IP Address
1 Australia 192.168.0.1/26
2 Australia 192.168.0.2/26
3 Australia 192.168.0.3/26
I need awk/sed command to replace the column2 value ( under Site) with some other... (8 Replies)
Discussion started by: samaritan
2. Shell Programming and Scripting
Discussion started by: dhruuv369
3. Shell Programming and Scripting
Hi please help me in resolving the scenario.
.... and so on.
Result should be:4 files created.
first file, file1.txt (no need to worry about .txt extension) will... (1 Reply)
Discussion started by: maks475
4. UNIX for Dummies Questions & Answers
Please can you help me to create a file using the following inputs
2351 first input
2339 second input
all this rows need to have the value 0 in front
2338 third input
2333 fourth input
all this rows need to have the value 1 in front
count all the rows in the file and insert the... (10 Replies)
Discussion started by: jiam912
5. UNIX for Dummies Questions & Answers
I have a tab separated text file with two columns. I would like to make the first column values as headings for the second column values.
and I want to have a file
priorities... (4 Replies)
Discussion started by: Unilearn
6. Shell Programming and Scripting
I have a file that has ~2.9Millions lines with 32 columns respectively.
The columns numbers 23,27 are the primary Keys for the file.
The fields are delimited by TAB.
I need to check the condition If
Column number: 20 is NOT NULL
Column number: 21 is not 0
Column number: 22 is... (7 Replies)
Discussion started by: filter
7. UNIX for Dummies Questions & Answers
I have a file with four columns and I would like to replace values in the second column only.
An arbitrary example is:
100 A 105 B
200 B 205 C
300 C 305 D
400 D 405 E
500 E 505 F
I need to replace the second column as shown below:
... (4 Replies)
Discussion started by: Gussifinknottle
8. Shell Programming and Scripting
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Discussion started by: amigarus
9. Shell Programming and Scripting
I have a table with 10 columns. Some columns(2nd,4th,5th,7th,8th and 10th) are Not Null columns. I'll get a tab-delimited file and want to check col by col and generate seperate error code for each col eg:102 if 2nd col value is NULL and 104 if 4th col value is NULL so on... I am a... (7 Replies)
Discussion started by: Mandab