# Desc: Searches for erotic phrases in text files in specified working directory
# Usage: find_erotica.sh [dir]
# Depends: GNU Find utils, GNU Parallel 20210822, GNU Grep, GNU Coreutils 8.32, bc
-# Version: 0.2.0
+# Version: 0.2.2
FIN_MAX=400;
grep -v -- '-$'; # ADJUST ME
);
- if [[ "${#output[@]}" -gt 0 ]]; then
+ if [[ "${#output[@]}" -gt 1 ]]; then
printf "%s\n" "$(basename "${fin}" )";
- printf "Result: %d lines.\n" "${#output[@]}"
+ printf "Result: %d lines.\n" "${#output[@]}";
printf "%s\n" "${output[@]}";
printf "\n";
fi;
cmd+=('-e' 'lips');
cmd+=('-e' 'lovers');
cmd+=('-e' 'hard-on');
- cmd+=('-e' 'whore');
cmd+=('-e' 'sex');
cmd+=('-e' 'throat');
cmd+=('-e' 'cleavage');
+ cmd+=('-e' 'kiss');
cmd+=('--');
cmd+=("$fin");
local output; mapfile -t output < <( "${cmd[@]}"; );
printf "%s\n" "${output[@]}";
-
+ #printf "Found %d matching lines for nouns.\n" "${#output[@]}" 1>&2; # debug
# yell "STATUS:Finished find_nouns() on $fin" # debug;
}; # find nouns
find_adjectives() {
cmd+=('-e' 'tender');
cmd+=('-e' 'pleasurabl');
cmd+=('-e' 'buxom|busty|curvy');
+ cmd+=('-e' 'naked|nude');
cmd+=('--');
cmd+=('-');
local output; mapfile -t output < <( "${cmd[@]}"; );
printf "%s\n" "${output[@]}";
+ #printf "Found %d matching lines for adjectives.\n" "${#output[@]}" 1>&2; # debug
}; # find adjectives
find_verbs() {
# Desc: Find verbs
cmd+=('-');
local output; mapfile -t output < <( "${cmd[@]}"; );
printf "%s\n" "${output[@]}";
+ #printf "Found %d matching lines for verbs.\n" "${#output[@]}" 1>&2; # debug
}; # find verbs
find_mix_1() {
# Desc: Filter mix 1
cmd+=('-e' '( his| her| my) [^\.|;]{,24}nipple.{,24}harden');
cmd+=('-e' '(suck|lick)[^\.|;]{,12} (nipple|cock( |\.|,)|dick)');
cmd+=('-e' '(slap)[^\.|;]{,12}( ass)');
- cmd+=('-e' '( his| her| my) [^\.|;]{,12} (cunt|pussy( |\.|,)|cock( |\.|,)|dick|shaft( |\.|,|;))');
+ cmd+=('-e' '( his| her| my) [^\.|;]{,12}(cunt|pussy( |\.|,)|cock( |\.|,)|dick|shaft( |\.|,|;))');
cmd+=('--');
cmd+=('-');
- "${cmd[@]}"; # execute command
+ local output; mapfile -t output < <( "${cmd[@]}"; );
+ printf "%s\n" "${output[@]}";
+ #printf "Found %d matching lines for phrases in %s.\n" "${#output[@]}" "$fin" 1>&2; # debug
}; # find phrase
main () {
din="$1";