mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +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.
|
||||
echo 'maps.google.com' | awk -F. '{print $NF}'
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user