tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ problems using printf !!

how do you concatenate all the lines in a file together? ▻

What is the bash syntax for [[ ]] - and how to find in "man bash" ?

In article <slrn8bbp9v.3e9.ocurtin@jarod.oc>,
Curly++ <ocurtin@NOSPAM.usa.net> wrote:
>> case "$i" in
>> -*)      ...
>> esac
>
>More efficent that my usual boilerplate.  I sure wish it had
>a nicer syntax, though.

How about this?  :-)

    if (~ $i -*) ...

(That's using rc of course.)

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: What is the bash syntax for [[ ]] - and how to find in "man bash" ?
Date: 25 Feb 2000 13:59:16 -0000
Message-ID: <8961sa$3gi$1@ltpcg.star.le.ac.uk>
References: <893pja$cer$1@yin.interaccess.com>
  <slrn8bb3po.317.ocurtin@jarod.oc> <894e0e$gr3$1@yin.interaccess.com>
  <slrn8bbp9v.3e9.ocurtin@jarod.oc>

△ comp.unix.shell △

◅ problems using printf !!

how do you concatenate all the lines in a file together? ▻