![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| syntax problem grepping? | dsimpg1 | Shell Programming and Scripting | 9 | 07-17-2007 08:48 PM |
| Syntax problem with Unix ftp get command | mheinen | HP-UX | 2 | 02-09-2007 01:01 PM |
| syntax problem | rajan_ka1 | Shell Programming and Scripting | 3 | 03-16-2006 10:13 AM |
| syntax problem | rajan_ka1 | Shell Programming and Scripting | 3 | 03-08-2006 01:04 PM |
| multiple cuts syntax problem | Gerry405 | UNIX for Dummies Questions & Answers | 12 | 10-31-2005 09:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I have one File named "txt_file"
# cat txt_file <DBType>RT</DBType> <AppType>RT</AppType> -------------------------------------------------- I want replace "<AppType>RT</AppType>" to <AppType>XY</AppType> in txt_file and output redirect to Newfile -------------------------------------------- I have a scipt file named "add.sh" #cat add.sh #!/bin/bash cat txt_file |sed 's'/<AppType>RT</AppType>'/'<AppType>XY</AppType>/'g' >Newfile ___________________________________________ But when I am running that script(add.sh) I am getting error "add.sh: line 2: AppType: No such file or directory" It might be syntax problem. Coul you please help me out. Thanks in advance!! Sanjay |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|