| | |
automation scripts--help needed urgent
![]() |
Hi team,
Well i have been asked to make use of automation scripts for my host production box.. .And i hope u will help me with the same.
#script as below:
a)when i run script it should ask the person to key in..(means should be interactive)
b) it should search a file
c) it should replace a word/ multiple word in a file and prompt user for more changes once he done with
and finally..
D) delete the line rows... (any rows- mentioned by the user on files)
I am done with the 1st script but i am having probs with the second and third
2)I knw sed will replace
3)and sed 'line,lined' file
but how to use in the below script and ask the user for more inputs..
Please provide me with the earliest..
thankin you once again
PS: Moderator pls dont treat this mail as repetative
regards
whizkidash
Well i have been asked to make use of automation scripts for my host production box.. .And i hope u will help me with the same.
#script as below:
a)when i run script it should ask the person to key in..(means should be interactive)
b) it should search a file
c) it should replace a word/ multiple word in a file and prompt user for more changes once he done with
and finally..
D) delete the line rows... (any rows- mentioned by the user on files)
I am done with the 1st script but i am having probs with the second and third
2)I knw sed will replace
Shell Scripting Syntax (Toggle Plain Text)
sed 's/(word)/(with-word)'/ file name
3)and sed 'line,lined' file
but how to use in the below script and ask the user for more inputs..
Please provide me with the earliest..
thankin you once again
PS: Moderator pls dont treat this mail as repetative
regards
whizkidash
Shell Scripting Syntax (Toggle Plain Text)
vi showme.sh(script name) echo "type the file to be search" read fname if ls -lart | $fname then echo " File exist" else echo " File fail" ------(uptil here it run fine) echo " type the file to be replace/or substituted" read tname
Last edited by peter_budo; 15 Days Ago at 5:34 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
![]() |
Similar Threads
- Generate Thumbnail images on the fly. (PHP)
- C program needed...URGENT !!!!! (C)
- WANTED : PHP/Mysql programmer (US time zone) (Web Development Job Offers)
- PYTHON scripts needed (Project Partners Wanted)
- Ethernet Card HELP NEEDED (URGENT) (PCI and Add-In Cards)
Other Threads in the Shell Scripting Forum
- Previous Thread: Need SFTP script
- Next Thread: Shell script to append text file with today's date.
| Thread Tools | Search this Thread |





