Search Results

Search: Posts Made By: xxxx
3,606
Posted By Franklin52
If your sed version supports the -i (in place)...
If your sed version supports the -i (in place) option:
sed -i 's!SCGIMount /RPC3 127.0.0.1:5001!SCGIMount /RPC3 127.0.0.1:5000!' apache2.conf
Otherwise:
sed 's!SCGIMount /RPC3...
3,606
Posted By bartus11
If you want to add the line to the end of the...
If you want to add the line to the end of the file, then this will do:echo "SCGIMount /RPC3 127.0.0.1:5001" >> apache2.conf
3,606
Posted By jim mcnamara
sed "s!changeusername!$username!"...
sed "s!changeusername!$username!" /etc/init.d/$username


The single tics prevent shell evaluation of variables.
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy