![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 2
Rep Power: 0
![]() |
scripting question
hi all,
i'm new here, i would like to add on the print command to prompt user to enter a value and store inside the variable name as $inName like print "what is your directory : "; then the answer is storing to &inName after that the value will replace the existing line for ${METRICA_DIR}/TechnologyPacks/Spool/2030324032 i'm new in scripting, could anyone give me some hint for sripting? tmpfile=/tmp/tmpfile.$$ for file in loaderconfiguration*.xml do sed "s|${METRICA_DIR}/TechnologyPacks/Spool/2030324032|$inName|g" $file > $tmpfile mv $tmpfile $file done thanks |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Basic 2005 Question | ReubenK | Visual Basic .NET | 3 | Apr 5th, 2006 3:23 PM |
| Do you use perl over bash scripting? | linuxpimp20 | Perl | 3 | Sep 12th, 2005 2:29 PM |
| How to post a question | nnxion | C++ | 10 | Jun 3rd, 2005 11:53 AM |
| How to post a question | nnxion | C++ | 0 | Jun 3rd, 2005 8:55 AM |
| How to post a question | nnxion | C | 0 | Jun 3rd, 2005 8:55 AM |