Unix Guru's ,
I have a file all_files.txt containing data as follows
all_files.txt
first file : /a/b/c/file.sh first second CLIENT1
second file : /a/b/c/file.sh first second CLIENT1
first file : /a/b/c/file.sh first second CLIENT2
second file : /a/b/c/file.sh first second CLIENT2
first file : /a/b/c/file.sh first second CLIENT3
second file : /a/b/c/file.sh first second CLIENT3
first file : /a/b/c/file.sh first second CLIENT4
second file : /a/b/c/file.sh first second CLIENT4
I would like to replace line2 for CLIENT2
second file : /a/b/c/file.sh first second CLIENT2
with
second file : /a/b/c/script.sh driver file CLIENT2
If I can make CLIENT1,2,3,4 as a variable i will be able to selectively modify the file.
any help is appreciated.