tutorials:bash_scripting:part3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:bash_scripting:part3 [2012/05/29 10:51] – rmiles | tutorials:bash_scripting:part3 [2017/10/12 21:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
//**3. Creating a configuration file on the fly and stream editing**// | //**3. Creating a configuration file on the fly and stream editing**// | ||
+ | ---- | ||
Someone on the list asked If I'd do something with stream editors. In this tutorial I'll use pipes, grep, sed and awk to help set a variable in a configuration file when I log into a session. Grep in this case will be used to print lines matching a given pattern to stdout. Sed will be used to print only one line piped from grep to stdout. Awk will be used to print just one field from the line piped in from sed. | Someone on the list asked If I'd do something with stream editors. In this tutorial I'll use pipes, grep, sed and awk to help set a variable in a configuration file when I log into a session. Grep in this case will be used to print lines matching a given pattern to stdout. Sed will be used to print only one line piped from grep to stdout. Awk will be used to print just one field from the line piped in from sed. | ||
Line 117: | Line 118: | ||
</ | </ | ||
- | Cheers! | + | ---- |
+ | **Cheers!** | ||
tutorials/bash_scripting/part3.1338252660.txt.gz · Last modified: 2017/10/12 21:58 (external edit)