Search Results

Search: Posts Made By: balajesuri
1,054
Posted By balajesuri
$ cat inputfile | tr -d '\n' | sed...
$ cat inputfile | tr -d '\n' | sed 's/\([^~]*~[^~]*~[^~]*~[^~]*~[^~]*~\)/\1\n/g'
"aa"~"bb"~"001"~""~""~
"cc""dd"~"005"~""~""~"kk"~
"aa"~"008"~""~""~
1,054
Posted By balajesuri
@mnmonu: You wanted 5 numbers of '~' on a line,...
@mnmonu: You wanted 5 numbers of '~' on a line, right? Sample output is contradicting with your requirement.

$ perl -pe 's/\n//g' inputfile | perl -pe 's/(.+?~.+?~.+?~.+?~.+?~)/$1\n/g'...
Showing results 1 to 2 of 2

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