#!/bin/bash
LDIF=`cat test.ldif`
E=""
i=1
while read line; do
if [ "$line" == "" ] ; then
ARRAY_LDIF[$i]="$E"
(( i++ ))
E=""
else
E="$line
$E"
fi
done < <(echo -e "$LDIF\n")
for element in "${ARRAY_LDIF[@]}" ; do
echo "Tractant [$element]"
done
--
========================
^ ^
O O
(_ _)
muzzol(a)muzzol.com
========================
jabber id: muzzol(a)jabber.dk
========================
No atribueixis qualitats humanes als ordinadors.
No els hi agrada.
========================
"El gobierno español sólo habla con terroristas, homosexuales y
catalanes, a ver cuando se decide a hablar con gente normal"
Jiménez Losantos
========================
<echelon spamming>
bomb terrorism bush aznar teletubbies
</echelon spamming>
--
_______________________________________________
Comandob mailing list
[email protected]
http://lists.badopi.org/mailman/listinfo/comandob