Skip to content

Instantly share code, notes, and snippets.

@jonreid
Last active November 26, 2020 11:09
Show Gist options
  • Select an option

  • Save jonreid/1258076 to your computer and use it in GitHub Desktop.

Select an option

Save jonreid/1258076 to your computer and use it in GitHub Desktop.

Revisions

  1. jonreid revised this gist Sep 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    find . \( \( -name "*.[chm]" -o -name "*.mm" \) -o -name "*.cpp" \) -print0 | xargs -0 egrep -n '^\w*\#' | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'
    find . \( \( -name "*.[chm]" -o -name "*.mm" \) -o -name "*.cpp" \) -print0 | xargs -0 egrep -n '^\w*\#' | egrep -v '(import|pragma|else|endif|HC_SHORTHAND|MOCKITO_SHORTHAND)'
  2. jonreid revised this gist Oct 4, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    egrep -n '^\w*\#' `find . -name "*.h" -o -name "*.m" -o -name "*.mm" -o -name "*.c" -o -name "*.cpp"` | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'
    find . \( \( -name "*.[chm]" -o -name "*.mm" \) -o -name "*.cpp" \) -print0 | xargs -0 egrep -n '^\w*\#' | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'
  3. jonreid revised this gist Oct 4, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    egrep -n '^\w*\#' `find . -name "*.h" -o -name "*.m" -o -name "*.mm"` | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'
    egrep -n '^\w*\#' `find . -name "*.h" -o -name "*.m" -o -name "*.mm" -o -name "*.c" -o -name "*.cpp"` | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'
  4. jonreid renamed this gist Oct 3, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. jonreid created this gist Oct 2, 2011.
    1 change: 1 addition & 0 deletions objc-prepro
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    egrep -n '^\w*\#' `find . -name "*.h" -o -name "*.m" -o -name "*.mm"` | egrep -v '(import|pragma|else|endif|HC_SHORTHAND)'