[CentOS] script regular expression

Fri Feb 10 13:59:32 UTC 2012
Leonard den Ottolander <leonard at den.ottolander.nl>

Hello Alejandro,

On Thu, 2012-02-09 at 23:29 -0800, Alejandro Rodriguez Luna wrote:
> #/bin/bash
> for i in $(cat certificates.txt)
> do  
>     echo $i 
> done

(As people already pointed out in case the input is coming from a file
you should use a redirect.)

What you see has to do with the internal field separator (IFS), which is
usually set to space, tab and newline. Each of these characters is
considered a field separator i.e. a break point in your list. You can
read up on this at
http://www.tldp.org/LDP/abs/html/internalvariables.html#IFSH .

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research