Search Results

Search: Posts Made By: thejitha
3,798
Posted By thejitha
thejitha@ubuntu:~$ awk --version awk: not an...
thejitha@ubuntu:~$ awk --version
awk: not an option: --version
3,798
Posted By thejitha
Hi scrutinizer, Thank you very much for your...
Hi scrutinizer,

Thank you very much for your help. When I use a~/[A-Z]/ I got the correct result.


---------- Post updated at 03:43 AM ---------- Previous update was at 03:31 AM ----------...
3,798
Posted By thejitha
Hi Jotne, I used a~/[A-Z]/ I got the...
Hi Jotne,

I used a~/[A-Z]/

I got the correct result. Thank you very much.
3,798
Posted By thejitha
Hi scrutinizer, I tried your suggestion. But...
Hi scrutinizer,

I tried your suggestion. But there is no change in the result.
3,798
Posted By thejitha
My OS is ubuntu 12.04. ...
My OS is ubuntu 12.04.


thejitha@ubuntu:~/Desktop$ awk '{print substr($0, 14, 4)}' thejitha
M
A
K
M G
L
E S
E S
E
thejitha@ubuntu:~/Desktop$ awk '{print substr($0, 17,...
3,798
Posted By thejitha
Thank you for your reply. I did with the example...
Thank you for your reply. I did with the example which I gave. But I get the same result.
3,798
Posted By thejitha
Hi Jotne, I tried your code . I don't get...
Hi Jotne,

I tried your code . I don't get the output like you. I got the following output. All the characters in the 5th column are changing in to C.


1 1 B M C 0 0 203 ...
3,798
Posted By thejitha
Add a character C in a column if that column is blank
I have some files that look as follows. I need to add a character 'C' in the fifth column if that column is blank. I prefer in-place editing.
1 1 B M 0 0 203 0, 0.0 ...
Showing results 1 to 8 of 8

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