Skip to content

Instantly share code, notes, and snippets.

@jcesarstef
Created January 7, 2026 02:08
Show Gist options
  • Select an option

  • Save jcesarstef/ef28ba7b0ce34cd8c55fdd187e0b4d24 to your computer and use it in GitHub Desktop.

Select an option

Save jcesarstef/ef28ba7b0ce34cd8c55fdd187e0b4d24 to your computer and use it in GitHub Desktop.
Tired of messing up the grep argument order, so I created a new Linux command: jgrep
# jgrep: Comando para inverter a sintaxe do grep, recebendo o arquivo antes do termo de busca.
jgrep() {
grep "$2" "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment