![]() |
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 |
| ssh script problem problem | pcjandyala | Shell Programming and Scripting | 2 | 07-31-2008 03:27 PM |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 10:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 10:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem with sed
hi friends
i have a file "myfile" using sed i want to replace a whole word which have a p alphabet in starting input file: pbm 123 456 ram 234 567 outfile;pbm have p at starting so replaced by mishra mishra 123 456 ram 234 567 plz plz help me. |
|
||||
|
Code:
sed 's/\<p[^ ]*/mishra/g' file Code:
sed 's/\(^\| \)p[^ ]*/\1mishra/g' file |
|
||||
|
vow, it's working.
thanks a lot. |
| Sponsored Links | ||
|
|