Regular Expression: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (+hdparm sed hack) |
K (+regex filter) |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 4: | Zeile 4: | ||
no comment lines<br> | no comment lines<br> | ||
<code>cat /etc/squid/squid.conf |grep -e"^[^#]"</code> | <code>cat /etc/squid/squid.conf |grep -e"^[^#]"</code> | ||
no comment lines (#), no empty lines, sorted<br> | |||
<code>cat /foo/bar | grep -v -e"^[#]" | grep -v ^\s*$ | sort</code> | |||
hdparm hack to run before writeable mount of root<br> | hdparm hack to run before writeable mount of root<br> | ||
<code>sed -i 's/BOOTMISC/BOOTMISC HDPARM/g' /sbin/rc</code> | <code>sed -i 's/BOOTMISC/BOOTMISC HDPARM/g' /sbin/rc</code> |
Aktuelle Version vom 19. Februar 2011, 11:59 Uhr
no "// and empty lines"
grep -v -e"^[//]" /server/www/JSPWiki/conf/jspwiki.policy | grep -v ^\s*$
no comment lines
cat /etc/squid/squid.conf |grep -e"^[^#]"
no comment lines (#), no empty lines, sorted
cat /foo/bar | grep -v -e"^[#]" | grep -v ^\s*$ | sort
hdparm hack to run before writeable mount of root
sed -i 's/BOOTMISC/BOOTMISC HDPARM/g' /sbin/rc