Skip to content

Instantly share code, notes, and snippets.

View lucianadematteis's full-sized avatar
🏠
Working from home

lucianadematteis

🏠
Working from home
View GitHub Profile
#!/bin/bash
if [ $# -ne 2 ]
then
echo "Error: cantidad de argumentos insuficiente"
else
if egrep -q "^$1:" /etc/passwd
then
if egrep -q "^$2:" /etc/passwd
then
echo "Ambos existen en el sistema"
#!/bin/bash
read -p "Ingrese su cédula: " CEDULA
if echo "$CEDULA" | egrep -qx "[1-6][0-9]{7}"
then
if grep -q "$CEDULA" beneficios.txt
then