Pinchflat

'awk' - a programming language for working on files - Video Man Pages

Raw Attributes

Source: DistroTube
  • prevent_download: true
  • media_filepath:
  • uploaded_at: 2026-01-01T14:01:04Z
  • uuid: 8c49538a-1255-4b2b-8413-1313e85672c5
  • playlist_index: 1
  • description: The 'awk command' is really an entire programming language used for working with files and text. - Print a file (similar to 'cat'): awk '{print}' path/to/file OR awk '{print $0}' path/to/file - Print the 2nd field of each line: awk '{print $2}' path/to/file - Print the last field of each line: awk '{print $NF}' path/to/file - Search for lines containing 'string' and print the second field of those lines: awk '/string/ {print $2}' path/to/file - Use a different field separator (instead of space) and print 1st and 7th fields with a TAB in between: awk -F ":" '{print $1 "\t" $7}' /etc/passwd - Find a specific string in any column: ps -ef | awk '{ if($NF == "/usr/bin/pipewire") print $0};' NOTE We search if the last field is '/usr/bin/pipewire' and print the line. - Search 1st field if it starts with 'b' or 'c', then prints the line: awk '$1 ~ /^[b,c]/ {print $0}' .bashrc NOTE The '~' character is the regex match operator. - Use the 'substr' function to print each record from the 2nd character onward: awk '{print substr($0, 2)}' .bashrc NOTE It essentially prints the document but omits the first character of each line. REFERENCED: β–Ί https://gitlab.com/dwt1/vidman WANT TO SUPPORT THE CHANNEL? πŸ’° Patreon: https://www.patreon.com/distrotube πŸ’³ Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW πŸ›οΈ Amazon: https://amzn.to/2RotFFi πŸ‘• Teespring: https://teespring.com/stores/distrotube DT ON THE WEB: πŸ•ΈοΈ Website: http://distro.tube πŸ“ GitLab: https://gitlab.com/dwt1 πŸ—¨οΈ Mastodon: https://fosstodon.org/@distrotube πŸ‘« Reddit: https://www.reddit.com/r/DistroTube/ πŸ“½οΈ Odysee: https://odysee.com/@DistroTube:2 FREE AND OPEN SOURCE SOFTWARE THAT I LIKE: 🌐 Brave Browser - https://brave.com/ πŸ“½οΈ Open Broadcaster Software: https://obsproject.com/ 🎬 Kdenlive: https://kdenlive.org 🎨 GIMP: https://www.gimp.org/ πŸ’» VirtualBox: https://www.virtualbox.org/ πŸ—’οΈ Doom Emacs: https://github.com/hlissner/doom-emacs Your support is very much appreciated. Thanks, guys!
  • title: 'awk' - a programming language for working on files - Video Man Pages
  • id: 1914888
  • inserted_at: 2026-01-01T14:18:34Z
  • predicted_media_filepath: /downloads/chris/tubes/DistroTube_[UCVls1GmFKf6WlTraIb_IaJg]/Season 2026/s2026e010100_'awk' - a programming language for working on files - Video Man Pages.mp4
  • tasks:
  • thumbnail_filepath:
  • upload_date_index: 99
  • matching_search_term:
  • media_size_bytes: 78770210
  • duration_seconds: 491
  • metadata_filepath:
  • subtitle_filepaths:
  • short_form_content: false
  • media_downloaded_at: 2026-01-03T02:01:13Z
  • updated_at: 2026-02-03T01:00:02Z
  • media_id: cK1JMK7Ckq0
  • prevent_culling: false
  • source_id: 35
  • livestream: false
  • nfo_filepath:
  • original_url: https://www.youtube.com/watch?v=cK1JMK7Ckq0
  • culled_at: 2026-02-03T01:00:02Z
  • last_error:
  • media_redownloaded_at: 2026-01-03T02:01:17Z

Nothing Here!