From: Beginner on
abc=`grep ELF $remove`

In a sh script i need to chek if $remove contains ELF and store it in a
varible for later use but can get it to work. I have tried above and slit
variations no success

HELP!!!!!!! :-)


From: Pascal Bourguignon on
"Beginner" <invaild> writes:

> abc=`grep ELF $remove`
>
> In a sh script i need to chek if $remove contains ELF and store it in a
> varible for later use but can get it to work. I have tried above and slit
> variations no success

What do you need to store in the variable?
ELF?
The lineS containing ELF?
A flag indicating ELF is present in the file or not?
The name of the file that contains ELF?


--
"A TRUE Klingon warrior does not comment his code!"
From: Beginner on

"Pascal Bourguignon" <spam(a)mouse-potato.com> wrote in message
news:87ll2ne452.fsf(a)thalassa.informatimago.com...
> "Beginner" <invaild> writes:
>
> > abc=`grep ELF $remove`
> >
> > In a sh script i need to chek if $remove contains ELF and store it in a
> > varible for later use but can get it to work. I have tried above and
slit
> > variations no success
>
> What do you need to store in the variable?
> ELF?
> The lineS containing ELF?
> A flag indicating ELF is present in the file or not?
> The name of the file that contains ELF?
>
>
> --
> "A TRUE Klingon warrior does not comment his code!"

Sorry "ELF" the first three char in an executable file


From: Pascal Bourguignon on
"Beginner" <invaild> writes:

> "Pascal Bourguignon" <spam(a)mouse-potato.com> wrote in message
> news:87ll2ne452.fsf(a)thalassa.informatimago.com...
>> "Beginner" <invaild> writes:
>>
>> > abc=`grep ELF $remove`
>> >
>> > In a sh script i need to chek if $remove contains ELF and store it in a
>> > varible for later use but can get it to work. I have tried above and
> slit
>> > variations no success
>>
>> What do you need to store in the variable?
>> ELF?
>> The lineS containing ELF?
>> A flag indicating ELF is present in the file or not?
>> The name of the file that contains ELF?
> Sorry "ELF" the first three char in an executable file

You're not sorry enough. I know that elf files contain ELF. So what?
A lot of other files contain ELF too!

--
__Pascal Bourguignon__ http://www.informatimago.com/
In deep sleep hear sound,
Cat vomit hairball somewhere.
Will find in morning.
From: Bill Marcum on
On Sat, 27 Aug 2005 22:50:44 +1000, Beginner
<invaild> wrote:
> abc=`grep ELF $remove`
>
> In a sh script i need to chek if $remove contains ELF and store it in a
> varible for later use but can get it to work. I have tried above and slit
> variations no success
>
> HELP!!!!!!! :-)
>
Does $remove contain a filename or the actual text that you want to
check? What do you get in the variable $abc?


--
Knowledge, sir, should be free to all!
-- Harry Mudd, "I, Mudd", stardate 4513.3
 |  Next  |  Last
Pages: 1 2
Prev: The difference between 0 and NULL?
Next: ls