12 lines
277 B
Bash
12 lines
277 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
MAIN() {
|
||
|
TFCOUNT="$(find *.php | wc -l)"
|
||
|
for i in $TFCOUNT; do
|
||
|
FILE="$(find *.php | sed -n ${i},${i}p)"
|
||
|
grep -E "fuck|FUCK|fuk|fak|Fuck" "$FILE"
|
||
|
done
|
||
|
}
|
||
|
|
||
|
MAIN | grep -E "f|F" && printf "Many fucks given.\n" || printf "Zero fucks given.\n"
|