Bash Scripting, Globs, and Regular Expressions
[Pages:63]Bash Scripting, Globs,
and Regular Expressions
and grep
and sed
and more?
Labs
Forcelab and Zombielab are out! You will have two weeks to do the next three labs They cover a lot of material
What does a shell do?
Bash scripting
Command string is parsed
$ mv source_file.c destination
Globs/Ranges
Enter commands
1 char *args[]={ 2 "mv", 3 "source_file.c", 4 "destination" 5 }; 6 execvp("mv", args);
Bash loads the arguments and executes the command
Stuff happens
Command Review
Task Show directory contents Change directory Move a file Copy a file Rename a file Execute a binary Print something
Command ls cd directory_name mv file.txt location cp file.txt copy.txt mv file.txt renamed.txt ./binary_file echo "Hello World"
Bash scripting
Sometimes you run the same set of commands many times. Retyping commands isn't very much fun
Unless you like typing I don't like typing
There's a simple solution...
Solution?
................
................
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
- unix command cheat sheets del mar college
- arithmetic operators control structures function
- unix linux shell cheat sheet
- linux command cheat sheet share this cheat sheet
- v1 3 sept 2012 shell scripting cheat sheet online http
- shell scripting regex awk sed grep
- sql commands cheat sheet intellipaat
- linux bash shell cheat sheet university of alabama
- extended unix sed awk grep and bash scripting basics
- command prompt cheatsheet columbia university
Related searches
- writing and evaluating expressions worksheet
- writing and evaluating expressions pdf
- writing and evaluating expressions calculator
- bash scripting cheat sheet
- regular expressions js
- using regular expressions in java
- regular expressions tutorial
- regular expressions in java
- java regular expressions tutorial
- irregular and regular verbs pdf
- linux bash scripting cheat sheet
- bash scripting cheat sheet pdf