Re: [Forum] BASH Programmering

From: <khald@chem.au.dk>
Date: Tue Oct 23 2001 - 16:11:51 CEST

Hej Forum.

Quoting Henrik Brix Andersen <btech1@users.sourceforge.net>:

> Hej,
>
> Hvordan er det nu lige man (under bash) læser standard output fra en
> kommando ind i en intern variabel i sit shell script?
>
> Mvh
> ./Brix
> --
> Henrik Brix Andersen <btech1@users.sourceforge.net>
>
> "Join the revolution!" - GNU/Linux
>
>

Tænker du på følgende :

{
#!/path/to/bash

FIL=`ls -ltr | grep -i 'TEST'`
echo $FIL
}

M.v.h.

Kasper.

--
Kasper Hald
Ph.D.-student in Theoretical Chemistry
Email: khald@chem.au.dk
For further information : http://www.chem.au.dk/~khald
Received on Tue Oct 23 16:11:50 2001

This archive was generated by hypermail 2.1.8 : Tue Jul 19 2005 - 16:02:48 CEST