mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore(kb/awk): add command
This commit is contained in:
@@ -26,6 +26,9 @@ awk '$2 > 100' sales.txt
|
|||||||
# Print only the last column.
|
# Print only the last column.
|
||||||
echo 'maps.google.com' | awk -F. '{print $NF}'
|
echo 'maps.google.com' | awk -F. '{print $NF}'
|
||||||
awk -F '/' '{print $NF}' <<< 'test/with/slashes'
|
awk -F '/' '{print $NF}' <<< 'test/with/slashes'
|
||||||
|
|
||||||
|
# Make only the first character uppercase.
|
||||||
|
echo 'something' | awk '{print toupper(substr($0,0,1))tolower(substr($0,2))}'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Further readings
|
## Further readings
|
||||||
|
|||||||
Reference in New Issue
Block a user