Search Results

Search: Posts Made By: aksforum
6,705
Posted By aksforum
here is the copy pasted data from vi editor ...
here is the copy pasted data from vi editor
f1|_f2|_f3
|_f4~~
f1|_f2|_f3
|_f4~~
f1|_f2|_f3
|_f4~~

don't know a copy/paste going to add anything extra (like \r )

thx
6,705
Posted By aksforum
okay, i confused it.. here is the text file ...
okay, i confused it.. here is the text file
f1|_f2|_f3
|_f4~~
f1|_f2|_f3
|_f4~~
f1|_f2|_f3
|_f4~~

you can see that field f3 has a new line character in it.. but i want ~~\n as row delimiter...
6,705
Posted By aksforum
Counting number of records with string row delimiter
HI,

i have a file like this
t.txt
f1|_f2|_
f1|_f2|_
f1|_f2|_

as if col delimiter is |_ and row delimiter |_\n

trying to count number of records using awk

$ awk 'BEGIN{FS="|_" ;...
Showing results 1 to 3 of 3

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