Search Results

Search: Posts Made By: Soham
2,794
Posted By Soham
Great. I never thought it is so simple !!!
Great. I never thought it is so simple !!!
2,794
Posted By Soham
It works !!! Thanks
It works !!!

Thanks
2,794
Posted By Soham
Great. It worked. But a small issue again. If the...
Great. It worked. But a small issue again. If the input line has one or more blanks in between they are converted to single blank and if at the end of teh line they are truncated.

Naturally...
2,794
Posted By Soham
In the earlier mail I described that only. ...
In the earlier mail I described that only.

Input file is


001 123 456 789 x
002 This is just a x
001 test data x
003 file. x
11111111112
12345678901234567890

...
2,794
Posted By Soham
That's what. It runs but it does not change the...
That's what. It runs but it does not change the output (i.e. 5th and 6th columns are not becoming blank


Server:cat ~/a.txt
001 123 456 789 x
002 This is just a x
001 test data x
003...
2,794
Posted By Soham
Yes, I tried nawk. Now it does not give error but...
Yes, I tried nawk. Now it does not give error but not desired result. Columns do not become blank.I even tried to change columns 3 and 4 to 5 and 6.
2,794
Posted By Soham
I meant position 5 and 6. I tried your...
I meant position 5 and 6.

I tried your command. Unfortunately it gives error


awk: syntax error near line 1
awk: bailing out near line 1
2,794
Posted By Soham
It is type. It should be 001 in code
It is type. It should be 001 in code
2,794
Posted By Soham
Replace multiple positions in records which match crireria
I have a test file a.txt


001 123 456 789
002 This is just a
001 test data
003 file.


I want to clear columns 5 and 6 if the first 3 characters are 001 using awk.

I tried following but...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 09:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy