Hi!
I have the following file :
toto DODO /data/jhksdql
tutu DODO /data/hjdhqsjkd
titi DADA /data/nhjfsk
tata DUDU /data/gafdgz
1) I want to extract the lines with DODO only
so I do "cat file | grep DODO > /tmp/filetmp"
2) Now I want to add "ro" at the end of each line of filetmp to get
toto DODO /data/jhksdql ro
tutu DODO /data/hjdhqsjkd ro
Can I do this in one statement with the previous cat command?
Thanks!
I have the following file :
toto DODO /data/jhksdql
tutu DODO /data/hjdhqsjkd
titi DADA /data/nhjfsk
tata DUDU /data/gafdgz
1) I want to extract the lines with DODO only
so I do "cat file | grep DODO > /tmp/filetmp"
2) Now I want to add "ro" at the end of each line of filetmp to get
toto DODO /data/jhksdql ro
tutu DODO /data/hjdhqsjkd ro
Can I do this in one statement with the previous cat command?
Thanks!