I am having trouble doing expansion with this because of the escape character.
UNF\1122
Right now I am trying to stick with the really simple example of:
ps -ef | grep $USER
Eventually after I deal with the escape character I would like to do this.
ipcs -m | grep $USER | awk '{printf "%s ",$2}'
I know $USER
has a value because I did this.
$ echo $USER
UNF\1122
Please don't ask me why the administrator decided to put a \
in the username because I don't know.
To solve this I tried single quotes and double quotes. I have also tried to change username like this.
USER="UNF\\\\1122" and USER='UNF\\1122'
grep -F "$USER"
to match it as a fixed string not a regex. Reasons to always quote shell variables