Re: Writing a script that looks for missing data
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/30/04
- Next message: Programmer Dude: "Re: What program do you use for visualization of C/C++ program?"
- Previous message: William Park: "Re: Writing a script that looks for missing data"
- In reply to: Ludwig77: "Writing a script that looks for missing data"
- Next in thread: Ludwig77: "Re: Writing a script that looks for missing data"
- Reply: Ludwig77: "Re: Writing a script that looks for missing data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 15:28:08 GMT
On 30 Mar 2004 06:41:00 -0800, Ludwig77 <gregrjones@yahoo.com> wrote:
>
>
> I'm trying to write a script that will execute an action if a piece of
> data is missing from a flat file.
>
> Here is what I have so far:
>
> (for j in "data1" "data2" "data3"
> do
> egrep $j flat_file
>
> I'm stuck with how to test if the $j variable is NOT in the flat_file.
>
> I'm attempting this in Linux
if ! egrep "$j" ...... ; then ........ ; else ...... ; fi
The "!" means "no".
AC
- Next message: Programmer Dude: "Re: What program do you use for visualization of C/C++ program?"
- Previous message: William Park: "Re: Writing a script that looks for missing data"
- In reply to: Ludwig77: "Writing a script that looks for missing data"
- Next in thread: Ludwig77: "Re: Writing a script that looks for missing data"
- Reply: Ludwig77: "Re: Writing a script that looks for missing data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|