pitoloko, no entiendo lo que me has puesto, me lo puedes explicar??
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
#!/bin/bash
marca=$(grep [a-zA-Z]\{20\} ./datos.txt)
#modelo=$(grep [a-zA-Z0-9]\{20\})
#matricula=$(grep [0-9]\{/4\}"-"[A-Z]\{/3\})
#bastidor=$(grep [A-Z]\{/6\}"."[0-9][A-Z]\{/2\}"."[0-9][A-Z]"."[0-9]\{/6\})
echo ''>datos.txt
echo 'Introduce la marca: '
read marca
echo 'la marca es:'$marca >> datos.txt
cat datos.txt
echo ''
echo 'Introduce el modelo: '
read modelo
echo 'el modelo es: '$modelo >> datos.txt
echo ''
echo 'Introduce la matricula: '
read matricula
echo 'la matricula es: '$matricula >> datos.txt
echo ''
echo 'Introduce el bastidor: '
read bastidor
echo 'el bastidor es: '$bastidor >> datos.txt
echo ''
cat datos.txt
if [ head -1 | tail -1 | cut -d ":" -f 2 -eq $marca]
then
echo 'La marca es incorrecta.'
else
echo 'La marca es correcta.'
echo $marca
fi
#!/bin/bash
tipo=$(cat /etc/netware/interfaces | grep '^iface eth0' | cut -d " " -f 4)
if [ $tipo="static" ]
then
echo 'Conexion estatica'
else
echo 'Conexion dinamica'
fi
#!/bin/bash
tipo=$(cat /etc/netware/interfaces | grep '^iface eth0' | cut -d " " -f 4)
if [ $tipo="static" ]
then
echo 'Conexion estatica'
else
echo 'Conexion dinamica'
fi