Skip to content

Instantly share code, notes, and snippets.

@mfaani
Created April 25, 2023 20:31
Show Gist options
  • Save mfaani/ba4aaf98f305faca15329eed7d68088b to your computer and use it in GitHub Desktop.
Save mfaani/ba4aaf98f305faca15329eed7d68088b to your computer and use it in GitHub Desktop.
Useful bash commands

Find all file names that start with 'App'

find path/to/folder -name "App*"

Show the next 3 lines (trailing context) after a match

cat Foo.swift | grep -A 3 methodA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment