File: sgrep

package info (click to toggle)
sparskit 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 4,348 kB
  • sloc: fortran: 15,253; makefile: 260; sh: 136; ansic: 76
file content (5 lines) | stat: -rwxr-xr-x 173 bytes parent folder | download | duplicates (4)
1
2
3
4
5
# Usage: sgrep pattern
# Searches all source files for 'pattern'.
# Regular expressions should be enclosed in quotes "".

find . -name '*.f' -exec grep "$*" /dev/null {} \;