On Fri, 9 Mar 2007, Kiss Gabor wrote:
> Feladvany:
>
> Shell scriptben (sh, bash) hogy tudod elerni, hogy egy valtozo - a neve
> legyen mondjuk LF - tartalma mindossze egy \012-es karakter
> (ASCII LF) legyen, tehat igaz legyen a kovetkezo?
>
> $ echo -n $LF | hexdump
> 0000000 0a
> 0000001
> $
>
> Na jo! Es annal egyszerubben, mint ami eloszor eszedbe jutott? :-)
NF=`echo`
Bye,NAR
--
"Beware of bugs in the above code; I have only proved it correct, not
tried it."
_________________________________________________
linux lista - [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux