![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting lines inside a file without opening the file | toms | Shell Programming and Scripting | 3 | 09-24-2007 04:58 AM |
| making change in file without opening it | naamas03 | Shell Programming and Scripting | 0 | 04-04-2006 01:11 AM |
| Opening a file during FTP | ceaker | High Level Programming | 1 | 03-31-2006 11:40 PM |
| delete file without opening vi | lweegp | UNIX for Dummies Questions & Answers | 7 | 01-25-2006 10:23 AM |
| opening a file | hiei | UNIX for Dummies Questions & Answers | 4 | 03-31-2004 09:24 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Making Changes without opening file
Hello,
I'm new to scripting, I have a file test.dat. I want to make changes to it with out openning it. Example: test.dat has rows, and I want to change value "LA" to "TX" without opening it or without writing it to another file. Is it possible? Thanks |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
your command redirects to filename1 in such a case you need to use the -i option available in GNU sed |
| Thread Tools | |
| Display Modes | |
|
|