8

how to match lines without some strings in sed

view full story
linux-howto

http://stackoverflow.com – I tried to print out the first line (started with > as the files are fasta files) of every file under the folder and use sed to extract out those lines without plasmid and fragment. I did ls * | xargs -I one sed -n -e '/^>.*[^fragment|plasmid].*/p' one > outfile but it dosen't work? How should I modify it? (HowTos)