![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file update | piyush_movadiya | Shell Programming and Scripting | 8 | 06-27-2007 04:39 AM |
| update a file by key | ynixon | Shell Programming and Scripting | 25 | 03-29-2007 06:09 AM |
| How to update a single row in a file with sed | brendanf | Shell Programming and Scripting | 6 | 08-30-2006 04:44 PM |
| How can I update a file on 50 systems at once? | darthur | UNIX for Dummies Questions & Answers | 11 | 12-28-2001 08:14 AM |
| Batch file update | cfoxwell | UNIX for Dummies Questions & Answers | 4 | 10-04-2001 01:50 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
update file command help
please explain this update to the webcache.xml file ( attached)
sorry i come from a windows env thank you ************* echo -n "7. Updating webcache.xml file..." set line_num = `grep -n "</CACHEABILITY>" $ORACLE_HOME/webcache/webcache.xml | tail -1 | cut -d : -f 1` head -`expr $line_num - 1` $ORACLE_HOME/webcache/webcache.xml > webcache.xml.bcp cat cacherule.txt >> webcache.xml.bcp tail +$line_num $ORACLE_HOME/webcache/webcache.xml >> webcache.xml.bcp if ($os_name == "Linux") then cp -vu $ORACLE_HOME/webcache/webcache.xml $ORACLE_HOME/webcache/webcache.xml.orig >> $logfile cp -vu webcache.xml.bcp $ORACLE_HOME/webcache/webcache.xml >> $logfile else cp $ORACLE_HOME/webcache/webcache.xml $ORACLE_HOME/webcache/webcache.xml.orig >> $logfile cp webcache.xml.bcp $ORACLE_HOME/webcache/webcache.xml >> $logfile endif echo "Succeeded." ******************************************** if possible plese upload the updated file |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|