Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 - CentOS7

3 bytes removed, 07:46, 8 April 2015
no edit summary
</code>
 
<ol><li value="6">Save your editing session, but remain in the text editor.</li><li>The code displayed below uses a trick called the "Here Document" to redirect stdin from within the command (a quick way to display output on the screen). The read command will store the different information report items as words (separated by a space). The sed command used to convert the spaces to pipes (|) and stored into another variable. This allows the sed command to use extended regular expressions to print rpm elements that match those various patterns to be added to the report. Add the following code</li></ol>
<br>
<code style="color:#3366CC;font-family:courier;font-size:.9em;">
 
 
::&#35; Clear screen and use Here Document to display select on report items to read into variable<br><br>
::cat &lt;&lt;+
13,420
edits