Answer by muru for How to use shell variables after doing sudo su
You quoted the heredoc delimiter: sudo su<<'HERE' Variables in a heredoc are not expanded if the delimiter is quoted. From the docs: If any characters in word are quoted, the delimiter is the...
View ArticleHow to use shell variables after doing sudo su
I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access....
View Article
More Pages to Explore .....