File: check1.20.0

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (19 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

if [ $# -eq 0 ]
then
    echo "
Find from the current working directory all files containing the classes Arg
Glob OneKey Pipe ServerSocket SocketBase User or Xpointer

Run this script with any argument to obtain a list of filenames only.
Press Enter to continue and search for files or ^C to abort"
    read
else
    OPT=-l
fi

/bin/grep -E $OPT \
    '\b(Arg|Glob|OneKey|Pipe|ServerSocket|SocketBase|User|Xpointer)\b'\
    `/usr/bin/find . -type f \
                    -exec /usr/bin/perl -e 'print "{}\n" if -T "{}";' \;`