Differences between version 20 and predecessor to the previous major change of BashOneLiners.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 20 | Last edited on Monday, January 16, 2006 11:08:26 pm | by MattBrown | Revert |
Older page: | version 19 | Last edited on Tuesday, June 21, 2005 4:51:19 am | by AristotlePagaltzis | Revert |
@@ -59,4 +59,14 @@
<verbatim>
tr -dc ' -~' < /dev/urandom | head -c 20
</verbatim>
+
+----
+
+!!! Extracting a stanza from a file
+
+ <verbatim>
+ awk '/^iface bar/,/^$/ {print}'
+ </verbatim>
+
+This prints everything from the line starting with 'iface bar' to the next blank line to stdout.