![]() |
|
|
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 |
| shell script to insert data from gps.txt to mysql database | gudivada213 | Shell Programming and Scripting | 1 | 06-23-2009 02:05 PM |
| Insert variable into text file using shell script | badbunny9316 | Shell Programming and Scripting | 3 | 05-18-2009 06:07 AM |
| Insert C code in shell script | badbunny9316 | Shell Programming and Scripting | 1 | 05-14-2009 03:55 AM |
| Unix Shell Script: With Menu Option | jroberson | Shell Programming and Scripting | 11 | 08-26-2008 07:04 PM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 04:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sed insert option(-i) in shell script
Hi,
Please tell me how to use insert option of sed in a shell script on Solaris/AIX plateform. For example I need to insert few lines on top of every file whose name starts with say "SOL_DEL". Thanx. |
|
||||
|
Insert is not "-i". It's just "i". Do not confuse sed "commands" with command line options. The command line option "-i" means to edit the file in place (dangerous!) in most sed versions that have the -i option, so watch out.
If you google "sed", go to the very first page, and as you will see, it is the #1 sed page on the webs. There is an example for every single sed command, including insert. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|