linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2023/01/01 18:43] – external edit 127.0.0.1 | linux [2023/01/11 10:33] (current) – [Print the first column of a string] roger | ||
---|---|---|---|
Line 153: | Line 153: | ||
Where ''/'' | Where ''/'' | ||
+ | |||
+ | ===== awk ===== | ||
+ | |||
+ | ==== Print the first column of a string ==== | ||
+ | |||
+ | <code bash> | ||
+ | echo "This is a string" | ||
+ | # Output: " | ||
+ | </ | ||
+ | |||
+ | ==== Print a full string in lowercase or uppercase ==== | ||
+ | |||
+ | <code bash> | ||
+ | echo "This Is A CaPiTaLiZeD String" | ||
+ | # Output: "this is a capitalized string" | ||
+ | |||
+ | echo "This Is A CaPiTaLiZeD String" | ||
+ | # Output: "THIS IS A CAPITALIZED STRING" | ||
+ | </ |
linux.1672609438.txt.gz · Last modified: 2023/01/01 18:43 by 127.0.0.1