Micro *vieux* tips

$> touch "Jonita saoule bafr 03_08_07.avi"
$> for x in `ls`; do echo $x; done
Jonita
saoule
bafr
03_08_07.avi
$> IFS=""
$> for x in `ls`; do echo $x; done
Jonita saoule bafr 03_08_07.avi
$> IFS=" "
$> for x in `ls`; do echo $x; done
Jonita
saoule
bafr
03_08_07.avi
$> mutt -s "Video souvenir" -a "Jonita saoule bafr 03_08_07.avi" damien@_____.org
$> wget "http://gcu.info/pr0n/Jonita et rabbit font des choses.avi"
$> for x in `ls`; do echo $x; done
Jonita
saoule
bafr
03_08_07.avi
Jonita
et
rabbit
font
des
choses.avi
$ IFS=$'\n'
$> for x in `ls -1`; do echo $x; done
Jonita saoule bafr 03_08_07.avi
Jonita et rabbit font des choses.avi
sh/separateur_de_champ.txt · Last modified: 2010/01/12 13:29 (external edit)