Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - VMware

37 bytes added, 12:30, 8 June 2016
no edit summary
{|width="40%" align="right" cellpadding="10"
|- valign="top"
|{{Admon/tip|Bash Shell Scripting Tips:|<br><ul><li>'''Using awk to Manipulate Text:'''<br><br>Legend has it that the '''awk''' command was invented by three C programmers that wanted to create a utility in Unix that had programming syntax more like C programming. People started to use the command and found it very useful for report generation and file repair or manipulation.<br><br>The command mimics a C program, with braces '''{ }''' that surround the action to perform based on records from a database file matching either test conditions, regular expressions, etc. Fields appear as numbers with $.<br><br>'''<u>Examples</u>:'''<br><br>''awk '{print}' data-file.txt''<br><br>''awk -F";" '{print $5,$3}' data-file.txt''<br><br>''awk -F"," '$4 &gt;&#61; 10000 {print $1, $2}' salary.txt''<br><br></li><li>'''Crontab (Chronograph Tables):'''<br><br>Used to automatically run (as opposed to manually run) scripts, programs, or commands.<br><br>There are many tables (files), but the main one is: '''/etc/cron'''.<br><br>The '''crontab ''' command can be used to ''list'', ''create'', ''modify '' or create ''remove'' scheduled jobs in the shedulingfile.<br><br>'''<u>Examples</u>:'''<br><br>''crontab -e user'' # create/modify<br><br>''crontab -r -u user-name'' # remove specific user's crontab<br><br>''crontab -l -u username'' #List current schedules</li></ul>}}
|}
13,420
edits

Navigation menu