Búsqueda y manipulación de texto
grep
grep <word> <file>
# Expresiones regulares
grep -Ei "<word-1>|<word-2>|<word-3>" <file>
# Invertir filtro
cat /etc/passwd | grep -Eiv "/usr/sbin/nologin|/bin/false"sed
echo "hack the world" | sed 's/world/planet/'cut
cut -d ":" -f 1 /etc/passwdawk
echo "uno-dos-tres" | awk -F "-" '{print $1, $3}'tr
tr --delete '\n' < <file>
tr -d '\n' < <file>
tr -d '[[:space:]]' < <file>Última actualización
¿Te fue útil?