Replace a line in a file

view story

http://www.unix.com – Hi All, I have a quick question wrt to a specific scenario in UNIX where I am trying to loop through lines of a file and trying to replace the line with another File : Code: abcd.sh:501:/export/home/test/scripts_test:N load.sh:501:/export/home/test/scripts_test,UK:N unload.sh:501:/export/home/test/scripts_test,UK,501:N defs.sh:501:/export/home/test/scripts_test,UK,501:N hjkl.sh:501:/export/home/test/scripts_test,UK,501:N uio.sh:501:/export/home/test/scripts_test,UK,501:N inmu.sh:501:/export/home/test/scripts_test,UK,501:N Requirement: Read each line of the file and based on the status (HowTos)