Search Results

Search: Posts Made By: New to awk
2,774
Posted By New to awk
Some example data will help to create a solution...
Some example data will help to create a solution script for this.
2,774
Posted By New to awk
Thanks a lot, this works (When I create a shell...
Thanks a lot, this works (When I create a shell script with this content).

Is there any better way to print everything here rather than giving columns like $1,$2 etc, because I have a file having...
2,774
Posted By New to awk
I managed to write when I had to make values null...
I managed to write when I had to make values null in the last column:

awk -v numLines=`cat data.out.20090526 | wc -l` 'BEGIN { FS=OFS="|" } {if(NR > 1 && NR < numLines) {$4="null"} } 1'...
2,774
Posted By New to awk
Help required with awk/sed
Hi

I have a file, with format like:

column1|coulumn2|column3|column4
A|X|K|18
L|O|R|31,42,25
G|H|I|55,66
L|E|Q|25,31,94

output required:

column1|coulumn2|column3|column4
A|X|K|18...
Showing results 1 to 4 of 4

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