AUX=`cat fichero.txt`
apt-get install $AUXapt-get install `cat fichero.txt`amuchamu escribió:AUX=`cat fichero.txt`
apt-get install $AUX
Hay más formas, no sé si hay una mejor, supongo que sí pero ésta te vale.
De hecho esto también te serviría:apt-get install `cat fichero.txt`
[samuel@phenom Desktop]$ cat f
firefox
bash
kernel26
conky
[samuel@phenom Desktop]$ echo `cat f`
firefox bash kernel26 conky
[samuel@phenom Desktop]$ sudo pacman -S --needed `cat f`
Contraseña:
precaución: firefox-3.5.5-1 esta al día -- saltando
precaución: bash-4.0.035-1 esta al día -- saltando
precaución: kernel26-2.6.31.6-1 esta al día -- saltando
precaución: conky-1.7.2-5 esta al día -- saltando
AUX=""
while read linea; do
AUX="$AUX $linea"
done < ficheros.txt
apt-get install $AUXapt-get install `cat ficheros.txt | tr '\n' ' '`MientrasQue <condición> hacer
mostrar menú y pedir opción
realizar acción
finMQ