Search Results

Search: Posts Made By: dreamzalive
1,078
Posted By itkamaraj
$ cat input.txt field1 field2 field3 field4...
$ cat input.txt
field1
field2
field3 field4

field1
field2
field3 field4


$ awk '{for(i=1;i<=NF;i++)printf("\"%s\";",$i)}NF==0{printf("\n")}' input.txt...
1,910
Posted By neutronscott
Just the indexing? I will try to explain all of...
Just the indexing? I will try to explain all of it.

Firstly, it is often (and better) written:


nawk -F= '!a[$1]++' filename


Each record (a line here) is split into fields. The first...
Showing results 1 to 2 of 2

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