One-liner to add line at the beginning of the file(s). find mirrors-* -exec sed -i 1i’http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/’ {} \;
Pages
Categories
Archives
One-liner to add line at the beginning of the file(s). find mirrors-* -exec sed -i 1i’http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/’ {} \;
Sed one-liner to change correct paths. Before: php_admin_value open_basedir /srv/www/www.domena.tld/www After: php_admin_value open_basedir /srv/www/www.domena.tld Sed script: sed -i "s/\(.*\)php_admin_value open_basedir \(.*\)\/www$/\1php_admin_value open_basedir \2/g" /etc/httpd/conf/httpd.conf