[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Detecting disk drives from an installation script



> >>     echo -e "${FDISKOUT}" | some_command ...
> >>          ^^
> >>     Do not forget it.  :-)

On 20.06.07 10:28, Bob McGowan wrote:
> Why is '-e' required?  The -e tells 'echo' to "-e enable interpretation of
> backslash escapes", but there are no backslash escapes in the output of
> the 'fdisk -l' to worry about.

I've already seen 'echo -ne "blah\n"' => -n to prevent sending new line and
-e + \n to send new line... ;)

(please setup yout MUA to wrap long lines to 72-75 chars per line max)

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges. 



Reply to: