Regular Expression: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
K (+regex filter) |
||
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
no "// and empty lines"<br> | no "// and empty lines"<br> | ||
<code>grep -v -e"^[//]" /server/www/JSPWiki/conf/jspwiki.policy | grep -v ^\s*$</code> | <code>grep -v -e"^[//]" /server/www/JSPWiki/conf/jspwiki.policy | grep -v ^\s*$</code> | ||
no comment lines<br> | |||
<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> | |||
<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