From 93ccde4f461bd6806c35cf05b9f8bda326dd41e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=2E=2E=2E=20et=20pas=20R=C3=A9my?= <102509252+R-D-Y@users.noreply.github.com> Date: Fri, 7 Apr 2023 08:51:09 +0200 Subject: [PATCH] Update README.md (#378) Update description of 'awk' command (line 172 to 174). --- topics/linux/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/topics/linux/README.md b/topics/linux/README.md index 390d7a8..14ff417 100644 --- a/topics/linux/README.md +++ b/topics/linux/README.md @@ -169,6 +169,9 @@ They take in input (<) and output for a given file (>) using stdin and stdout. - cut: a tool for cutting out selected portions of each line of a file: - syntax: `cut OPTION [FILE]` - cutting first two bytes from a word in a file: `cut -b 1-2 file.md`, output: `wo` + - awk: a programming language that is mainly used for text processing and data extraction. It can be used to manipulate and modify text in a file: + - syntax: awk [OPTIONS] [FILTER] [FILE] +extracting a specific field from a CSV file: awk -F ',' '{print $1}' file.csv, output: first field of each line in the file