基本的に、私がやりたいことは、 awk から解析された結果を別のものに置き換えることです。次の awk コマンドがあります。
awk '$1~/^DocumentRoot/{print $2}' /etc/apache2/sites-available/default
どちらが返されます:
/var/www/
What I want to do is replace the /var/www/
(of course, it can be anything and not /var/www/ in particular) in the file. I tried to pipe a sed command, but I can't figure out how to do it...
Anyone can help ?