problem with shell script syntax
Posted on 2006-05-25
I'd like to write a shell script to scan and file and look for a string and if the string exist to echo it on the console
by example: i like to look for 172.16.8.222 in /root/myips if found echo it to the screen.
i'D also like to write a shell script to write a string to a file.
by example: i d like to write 172.16.8.222 to /root/myips, i do not my data to be overwritten
3) how can i remove a string from a file
by example: i'd like to remove 172.16.8.222 from /root/myips
please help, ty