Add awk_sed.md
This commit is contained in:
9
awk_sed.md
Normal file
9
awk_sed.md
Normal file
@ -0,0 +1,9 @@
|
||||
### AWK and SED Tips and tricks
|
||||
|
||||
## AWK
|
||||
|
||||
# Calculate total or average
|
||||
|
||||
```sh
|
||||
awk '{sum+=$1; n++} END {print sum / n}'
|
||||
```
|
||||
Reference in New Issue
Block a user