1

search information in multiple files and save in new files

view story
linux-howto

http://www.unix.com – hi everyone, im stuck in here with shell :) can you help me?? i have a directory with alot files (genbank files ... all ended in .gbk ) more than 1000 for sure ... and i want to read each one of them and search for some information and if i found the right one i save in new file with new name. i already get try for loops and no sucess :( well for search the information i get it right : awk 'BEGIN{RS="LOCUS"}/Equinodermata/{print "LOCUS"$0}' i only cant read each file and save in news! please help me :) i will give you a candy ;) (HowTos)