![]() |
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 |
| boolean parameter | aya_r | Shell Programming and Scripting | 0 | 09-07-2007 03:43 AM |
| response of a for loop?! | marwan | UNIX for Dummies Questions & Answers | 2 | 06-25-2007 09:59 AM |
| Is there way to ping and return boolean answer? | umen | UNIX for Dummies Questions & Answers | 11 | 02-12-2007 08:11 PM |
| Slow cd response | JohnOB | SCO | 0 | 09-13-2006 09:31 PM |
| Response time & IO max | salhoub | UNIX for Advanced & Expert Users | 1 | 10-10-2005 09:43 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
trying to get a boolean response from sed
I have a file coming in with many columns, but the first character of the the coumn is a record type, if I wanted to get a true/false kind of response as to whether it contains at least one of each type of record how would be best?
sed -e '/01/!d; /02/!d; /03/!d; /04/!d' datafile returns many rows if any are true, I need it to return if all are true and return false if at least one is missing. ![]() Is there an easier way to do this? Headcheck1=`awk -F"," '$1=="01" {print $1}' datafile will do one line only, am a little frustrated. help please. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|