Bash-data-handling - IARIA
The Ninth International Conference on Advances in Databases, Knowledge, and Data Applications
Mai 21 - 25, 2017 - Barcelona, Spain
Data Manipulation and Data Transformation using the Shell
Andreas Schmidt1,2 and Steffen G. Scholz2
(1)
Department of Informatics and
Business Information Systems
University of Applied Sciences Karlsruhe
Germany
Andreas Schmidt DBKDA - 2017
(2)
Institute for Applied Computer Sciences
Karlsruhe Institute of Technologie
Germany
1/64
Resources available
1
?
?
?
?
Slideset
Exercises
Command refcard
Example datasets
1. all materials copyright, 2017 by andreas schmidt
Andreas Schmidt DBKDA - 2017
2/64
Outlook
?
?
?
?
?
?
?
Overview
Search and Inspect
File operations
Excursus Regular Expressions
sed & awk
Emulating SQL with the Shell
Summary
Andreas Schmidt DBKDA - 2017
+ 3 hands on exercices
? First contact
? Analyzing text
? sed & awk
3/64
Data Processing with the Shell
?
?
?
?
?
Architectural Pattern: Pipes and Filters (Douglas McIlroy, 1973)
Data exchange between processes
Loose coupling
POSIX Standard
Filter represent data-sources and data-sinks
Filter
command
Pipe
Andreas Schmidt DBKDA - 2017
Pipe
Filter
Filter
Pipe
Pipe
Filter
Filter
4/64
Shell commandos in the Linux/Unix/Cygwin
Environment
? Input-/Output channels
? Standardinput (STDIN)
? Standardouput (STDOUT)
? Standarderror (STDERR)
? In-/Output Redirection
? > : Redirect Standardoutput (into file)
? < : Redirect Standardinput (from file)
? 2> : Redirect Standarderror (into file)
? >> : Redirect Standardoutput (append into file)
? | : Pipe operator: Connect Standardoutput of a command with Standardinput of
the next command
? Example:
cut -d, -f1 city.csv|sort|uniq -c|sort -nr|awk
Andreas Schmidt DBKDA - 2017
'$1>1'>result.txt
5/64
................
................
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
- bash reference manual
- bash redirections cheat sheet
- linux redirect output
- redir ection no starch press
- shell redirect output to file
- write output of bash command to log file example
- introduction to linux part 1
- bash data handling iaria
- introduction to linux boston university
- csci 4061 input output with files pipes university of minnesota
Related searches
- cash handling procedures template
- cash handling policy and procedures
- data classification and handling policy
- basic cash handling procedures
- cash handling procedures best practices
- quality material handling inc
- restaurant cash handling policy template
- warehouse material handling procedures
- material handling procedures samples
- manual materials handling procedures
- cash handling procedure manual
- sample material handling policy