Shell scripting and system variables - Purdue University
Shell scripting and
system variables
HORT 59000
Lecture 5
Instructor: Kranthi Varala
Text editors
? Programs built to assist creation and manipulation of
text files, typically scripts.
? nano : easy-to-learn, supports syntax highlighting,
lacks GUI.
? Emacs : provides basic editing functions but also
extendible to add functionality. Supports GUI,
extensions provide a wide range of functions.
? vi/vim : extensive editing functions and relatively limited
extensibility, command and insert modes distinct, steep
learning curve, but very rewarding experience.
Text manipulations
? Tabular data files can be manipulated at a columnlevel. 1. Cut: Divide file & extract columns. 2. Paste:
Combine multiple columns into a single table/file.
? Sort: Sort lines in a file based on contents of one or
more columns.
? Regular expressions : defining patterns in text. Special
characters and quantifiers allow search and
replacement of simple-to-complex matches.
? grep and awk use the power of regular expressions to
make text processing very easy.
Command-line operations
? All commands so far are run one at a time.
? Redirection and pipes allow combining a few
commands together into a single pipeline.
? Lacks logical complexity, such as ability to make
decisions based on input / values in file.
? Certain repetitive tasks are tedious to user.
? All commands are being sent to and interpreted by the
¡®shell¡¯
Client/Server architecture
User1
User2
User3
User4
Server
(UNIX/
Web/
Database etc..)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- python programming 1 variables loops and input output
- chapter 3 variables input and output mccc
- shell script assign command output to variable
- 028 30 storing and using a list of values in a macro variable
- assign command output to variable in shell script
- bash assign result of command to variable gobotech
- storing analyzing and presenting stataoutput
- bash script put variable in string
- linux shell scripting tutorial kau
- bash check if a variable is set tutorial kart
Related searches
- system variables are not editable
- shell scripting cheat sheet
- shell scripting examples
- unix shell scripting basics
- unix shell scripting examples
- shell scripting tutorial
- shotgun shell sizes and uses
- independent and dependent variables worksheet
- unix shell scripting tutorial pdf
- purdue university plagiarism checker
- purdue university salaries
- bash shell scripting cheat sheet