Search Results

Search: Posts Made By: auratus42
5,588
Posted By alister
sed -n '/ORGANISM/{n;N;N;N;s/[ \n]//g;s/;/;...
sed -n '/ORGANISM/{n;N;N;N;s/[ \n]//g;s/;/; /g;p;}'

$ cat data
ORGANISM Lates calcarifer
Eukaryota; Metazoa; Chordata; Craniata; Vertebrata; Euteleostomi;
...
5,588
Posted By bartus11
Try: perl -n0e 'while...
Try: perl -n0e 'while (/ORGANISM.*?\./sg){$s=$&;$s=~s/\n/ /g;print "$s\n"}' file
5,588
Posted By john1212
It works too: sed -n '/ORGANISM/{n;N;N;N;s/\n/...
It works too:
sed -n '/ORGANISM/{n;N;N;N;s/\n/ /gp}'
readable format:
sed -n '/ORGANISM/ {
n;N;N;N
s/\n/ /gp ...
Showing results 1 to 3 of 3

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