💾 Archived View for espotiesfa.ddns.net › linux › grep.gmi captured on 2022-07-16 at 14:21:15. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
_____ _ _ _ _ ___ _ | __ \| \ | | | | | / / | (_) | | \/| \| | | | | / /| | _ _ __ _ ___ __ | | __ | . ` | | | |/ / | | | | '_ \| | | \ \/ / | |_\ \| |\ | |_| / / | |___| | | | | |_| |> < \____/\_| \_/\___/_/ \_____/_|_| |_|\__,_/_/\_\ ------------- Ordre: grep -------------
grep {{cadena}} {{ruta/al/fitxer}}
grep -i {{cadena}} {{ruta/al/fitxer}}
grep -w {{cadena}} {{ruta/al/fitxer}}
grep -F {{cadena}} {{ruta/al/fitxer}}
grep -c {{cadena}} {{ruta/al/fitxer}}
grep -RI {{cadena}} {{ruta/al/directori}}
grep -A 3 {{cadena}} {{ruta/al/fitxer}}
No cal dir que podem usar canonades amb grep:
ls {{ruta/al/directori}} | grep {{cadena}}
ls {{ruta/al/directori}} | grep ^{{cadena}}
ls {{ruta/al/directori}} | grep {{cadena}}$
ls {{ruta/al/directori}} | grep -v {{cadena}}