Quantcast
Channel: How to use shell variables after doing sudo su - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

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 Article



How 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
Browsing all 2 articles
Browse latest View live




Latest Images