The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Scripting » awk

Scripting allows us to programmatically interact with the Linux operating system. Learn about some basic scripting fundamentals as well as some advanced topics focused on Bash.

  • bash (129)
  • x awk (65)
  • sed (48)
  • echo (35)
  • Shell (31)
  • grep (28)
  • printf (19)
  • perl (16)
  • read (13)
  • date (12)
  • tr (12)
  • find (11)
  • xargs (11)
  • cat (11)
  • set (10)
  • Python (10)
  • export (9)
  • regex (9)
  • source (8)
  • cut (8)
  • ls (8)
  • alias (8)
  • tail (7)
  • script (7)
  • curl (7)
  • tee (7)
  • copy-edit (7)
  • env (6)
  • eval (5)
  • ping (5)
  • cd (5)
  • tar (5)
  • expr (5)
  • vim (5)
  • sort (5)
  • cron (5)
  • watch (5)
  • expect (5)
  • ssh (5)
  • pushd (4)
  • JSON (4)
  • rsync (4)
  • nohup (4)
  • time (4)
  • vi (4)
  • wait (4)
  • sudo (4)
  • let (4)
  • csv (3)
  • mysql (3)
  • pdf (3)
  • ImageMagick (3)
  • Docker (3)
  • cp (3)
  • ps (3)
  • make (3)
  • chmod (3)
  • pgrep (3)
  • readlink (3)
  • exit (3)
  • reference (3)
  • wget (3)
  • paste (3)

>> Converting UTF-8 to ASCII

>> Wrap Quotes Around Each Line in a File or Variable

>> How to Run Variable Content as a Command in Bash

>> Generating a List of Dates in a Range in Bash

>> How to Extract the Last n Characters of a String in Bash

>> How to Echo the Variable Name Instead of Variable Value

>> How to Compare Time in Shell

>> How to Verify the Length of a Variable in Bash

>> Alternatives to the sed Command in Linux

>> How to Store Standard Error Messages in a Linux Variable

>> Bash One-Liners to Remove Characters From a Variable

>> How to Use Shell Variables as a Pattern in AWK

>> How to Split a Parameter by a Character Using awk

>> How to Count the Number of Matching Patterns Using awk

>> How to Repeat Each Line in a File Multiple Times in the Command Line

>> Returning a Regular Expression (Regex) Match in the Shell

>> How to Cut a Field From Text Line Counting From the End

>> The Backslash and Removing Backslashes From a Text File or String

>> How to Output Comma-Separated Strings Using Bash Brace Expansion

>> How to Match a String with a Fixed Numbers of Characters in Linux

>> Matching Uppercase and Lowercase Letters With Regex in Shell

>> Use of BEGIN and END Rules in Awk

>> How to Replace a Character in a Matched Line In-Place

>> How to Remove Lines That Contain Fewer Than n Characters

>> Guide to Multiplying Columns Using awk

>> How to Delete Text Before a Delimiter From the Command Line

>> Guide to Converting Timestamps in a Column to a Date

>> How to Convert a Date Format to Another Format

>> Zero Padding in the Shell

>> Extract Text Between Two Specific Characters in the Command Line

>> Print the Count of Lines Together With a Command’s Output

>> How to Prepend a Timestamp to the Output of a Command in Linux

>> How to Use Shell Variables in an AWK Script

>> Guide to Passing Parameters to an Awk Script

>> Reversing the List of Words in a Bash String

>> Printing awk Output in the Same Line

>> Print Decimal as ASCII Using the Shell

>> How to Filter strace’s Output Using grep

>> Replacing Specific Line With a String Variable in Shell

>> Converting Strings to Numbers in the Linux Command Line Interface

>> Split a List by Comma in Bash

>> Print Statistics of Numbers on the Linux Terminal

>> Inserting a Newline in a Variable in Bash

>> Iterating Over Each Line of ls -l Output

>> Division with Variables in a Linux Shell

>> Replacing Whitespaces With Tabs in a File in Linux

>> Return Value of Substitutions With sed and awk

>> Removing the Last Character of a File

>> Extracting a Substring in Bash

>> How to Add Up a Column of Numbers in Bash

>> Kill a Process Running on a Specific Port in Linux

>> File Editing: Appending a Non-Existent Line to a File

>> Pass the Output of a Command as an Argument for Another

>> Check if a String Contains a Substring in Linux

>> Guide to Generate Random Numbers in Linux

>> Splitting a File at Given Line Numbers

>> How to Delete Multiple Files at Once in Bash

>> Difference Between grep, sed, and awk

>> Save Modifications In-Place with awk

>> Commands to Get the Min, Max, Median, and Mean of a Dataset

>> How to Call an External Program Using awk

>> Read Random Line From a File in Linux

>> Remove the First Characters of a Line

>> How to Join Multiple Lines Into One

>> Is There a Way to ‘uniq’ by Column?

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo