I am trying to make a bash script with inotify-tools that will monitor a directory and alter all new files by removing lines containing \"EE\". Once altered it will move the
Quoting the man page of inotifywait:
inotifywait will output diagnostic information on standard error and event information on
standard output. The event output can be configured, but by default it consists of lines
of the following form:
watched_filename EVENT_NAMES event_filename
watched_filename
is the name of the file on which the event occurred. If the file is a directory, a
trailing slash is output.
In other words, it prints the names of the files to standard output. So, you need to read them from standard output and operate on them to do what you want to do.