Shell Data Processing - Awk (grep and sed) - Output filtering

Card Puncher Data Processing


The awk command is a filter that implements a language that is dedicated to text processing and combines the functions of:

AWK is a (tool|language) for event-based data processing.





Linux - ls (List directory content) with only acl information.

ls -l | grep pls.txt |  awk '{print $1, $2, $3, $4}'
-rw-rw---- 1 oracle oinstall

To get the cached memory

With the free command:

[oracle@Exalytics-01 ~]$ free | grep Mem | awk '{print $7}'

[oracle@Exalytics-01 ~]$ free
total       used       free     shared    buffers     cached
Mem:    1058964444 1011201796   47762648          0    1272644  137329872
-/+ buffers/cache:  872599280  186365164
Swap:    101023736       4392  101019344


Example on how to escape the :

awk '{print $1"\:"$2}'

Documentation / Reference

Discover More
Io Input Stream
I/O - Stream

A stream concept at the io level is a file (generally a text file) A stream is an abstract concept for files and io devices which can be read or written, or sometimes both. I/O devices can be interpreted...
Java Fileiomethods
Java - IO - Connection (Stream and Channel)

in Java. In order to perform I/O operations (for example reading or writing), you need to perform a connection. In Java, this connection are modelled through: a stream ( package) or a channel...
Bash Liste Des Attaques Ovh
Linux - File

Linux file management See Using Parameters Expansion Removal From a path string where the file does not exist dirname returns the first parent of an existing path file. ...
Card Puncher Data Processing
Shell Data Processing - Filter (Stream Operator)

This page is pipeline operator in a shell language. They are known as filter in a shell language. It is a computer program or shell command (subroutine) that: read from standard input (stream)...
Card Puncher Data Processing
Shell Data Processing - Filtering

line: output content:
Bash Liste Des Attaques Ovh
What is a Command in Bash?

This page is command in bash. Command are in bash the expression unit A command (or an expression) is a sequence of words separated by blanks, terminated by a control operator. Each command execution...
X11 - X11 and su: How to ?

After making a connection, you shows X windows by following for instance this article: . But when you change of user with the su command, you got . There is no display You then go back to the original...

Share this page:
Follow us:
Task Runner