|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | 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. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Detemine if SED is successful
Is there a way of finding out if an issued sed command is successful?
Basically, in my script I have a command where mydata=$(cat record | sed '...command here...'). When the sed command finds the data that I am after it is assigned to mydata. When the sed command does not find the data I am after, xxxx is assigned the whole contents of the file, which is expected. I am processing a file using a while loop. I was wondering if an indicator is set to indication success or failure. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Successful languages - show me the code please | Linux Bot | Complex Event Processing RSS News | 0 | 06-14-2008 11:30 PM |
| Log successful unix conditionals | kadi | Shell Programming and Scripting | 4 | 12-17-2007 03:21 PM |
| TCP\IP startup was not entirely successful (Unixware 7.1.1) | renjithcb | UNIX for Dummies Questions & Answers | 0 | 03-20-2007 03:04 AM |
| Successful Installion of Apache | cstovall | UNIX for Dummies Questions & Answers | 0 | 11-26-2002 11:16 AM |