User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2023/01/01 21:43] – external edit 127.0.0.1linux [2026/03/27 00:51] (current) – Remove dead wget gist link roger
Line 78: Line 78:
  
 ===== Download an entire website using wget ===== ===== Download an entire website using wget =====
- 
-More: https://gist.github.com/mikecrittenden/fe02c59fed1aeebd0a9697cf7e9f5c0c 
  
 <code bash> <code bash>
Line 153: Line 151:
  
 Where ''/'' is the filesystem you want to check Where ''/'' is the filesystem you want to check
 +
 +===== awk =====
 +
 +==== Print the first column of a string ====
 +
 +<code bash>
 +echo "This is a string" | awk '{print ($1)}'
 +# Output: "This"
 +</code>
 +
 +==== Print a full string in lowercase or uppercase ====
 +
 +<code bash>
 +echo "This Is A CaPiTaLiZeD String" | awk '{print tolower($0)}'
 +# Output: "this is a capitalized string"
 +
 +echo "This Is A CaPiTaLiZeD String" | awk '{print toupper($0)}'
 +# Output: "THIS IS A CAPITALIZED STRING"
 +</code>
linux.1672609438.txt.gz · Last modified: 2024/11/17 12:59 (external edit)