Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - SSD

7 bytes removed, 16:03, 13 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>Very useful command for report generation, text file repair, or text and floating-point decimal 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. There are many tables (files), but the main one is: '''/etc/cron'''. The '''crontab''' command can be used to ''list'', ''create'', ''modify'' or ''remove'' scheduled jobs in the file.<br><br>'''<u>Examples</u>:'''<br><br>''crontab -e -u 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