Gang Of Coders
Home
About Us
Contact Us
All Awk Solutions on Gang of Coders
Total of 104 Awk Solutions
How can I use ":" as an AWK field separator?
Bash
Awk
Print the last line of a file, from the CLI
Linux
Shell
Awk
Command Line-Interface
Multiple strings, Truncate line at 80 characters
String
Bash
Awk
How to check if the variable value in AWK script is null or empty?
Unix
Awk
Using curl in a bash script and getting curl: (3) Illegal characters found in URL
Linux
Bash
Curl
Awk
Uppercasing First Letter of Words Using SED
Linux
Bash
Unix
Awk
Sed
Splitting a file in linux based on content
Linux
File
Bash
Sed
Awk
How to remove blank lines from a Unix file
Unix
Awk
Blank Line
Randomly Pick Lines From a File Without Slurping It With Unix
Linux
Unix
Awk
Random Sample
File Processing
How to extract last part of string in bash?
String
Bash
Awk
delete a column with awk or sed
Sed
Awk
How do I add a line of text to the middle of a file using bash?
Linux
Bash
Sed
Awk
Grep
Can I use awk to convert all the lower-case letters into upper-case?
Linux
Bash
Awk
How to find/replace and increment a matched number with sed/awk?
Bash
Sed
Awk
What are the differences between Perl, Python, AWK and sed?
Python
Perl
Sed
Awk
Language Comparisons
AWK: Access captured group from line pattern
Regex
Awk
How to show only next line after the matched one?
Awk
Sed
Grep
Using multiple delimiters in awk
Awk
Command Line
Text Processing
How to split a delimited string into an array in awk?
Awk
How can I quickly sum all numbers in a file?
Linux
Perl
Bash
Shell
Awk
bash: shortest way to get n-th column of output
Bash
Awk
How to get the second column from command output?
Shell
Awk
Ksh
awk without printing newline
Scripting
Awk
Newline
How can I do a recursive find/replace of a string with awk or sed?
Bash
Sed
Awk
Replace
Print second-to-last column/field in `awk`
Awk
Insert a line at specific line number with sed or awk
Sed
Awk
How to merge every two lines into one from the command line?
Bash
Awk
Sed
Grep
How to grep for case insensitive string in a file?
Bash
Shell
Awk
Sed
Grep
Printing the last column of a line in a file
File
Awk
Tail
Is there a Unix utility to prepend timestamps to stdin?
Unix
Shell
Awk
How to delete duplicate lines in a file without sorting it in Unix
Unix
Shell
Scripting
Sed
Awk
Sort a text file by line length including spaces
Bash
Sorting
Text
Awk
How can I delete a newline if it is the last character in a file?
Linux
Perl
Shell
Awk
Sed
Bash tool to get nth line from a file
Bash
Shell
Unix
Awk
Sed
Find and kill a process in one line using bash and regex
Regex
Bash
Terminal
Awk
Save modifications in place with awk
Linux
Unix
Awk
How to select lines between two marker patterns which may occur multiple times with awk/sed
Shell
Unix
Sed
Awk
Pattern Matching
What are the differences among grep, awk & sed?
Linux
Bash
Sed
Awk
Grep
How to print matched regex pattern using awk?
Regex
Awk
sed or awk: delete n lines following a pattern
Unix
Sed
Awk
How to escape a single quote inside awk
Awk
Printing everything except the first field with awk
Awk
Sed
Get last field using awk substr
Unix
Awk
Substr
How to use multiple arguments for awk with a shebang (i.e. #!)?
Shell
Unix
Awk
Gawk
Shebang
using awk with column value conditions
Linux
Shell
Awk
Print all but the first three columns
Awk
Is there still any reason to learn AWK?
Awk
Text Processing
How to print last two columns using awk
Awk
What is the difference between sed and awk?
Sed
Awk
Append file contents to the bottom of existing file in Bash
Bash
Sed
Awk
Append
What are NR and FNR and what does "NR==FNR" imply?
Awk
Using awk to remove the Byte-order mark
Unicode
Awk
Byte Order-Mark
Show filename and line number in grep output
Awk
Grep
How to use awk sort by column 3
Awk
Printing column separated by comma using Awk command line
Csv
Awk
Tab separated values in awk
Awk
how to use sed, awk, or gawk to print only what is matched?
Regex
Unix
Sed
Awk
Gawk
awk partly string match (if column/word partly matches)
Awk
How to print all the columns after a particular number using awk?
Shell
Awk
How to print the number of characters in each line of a text file
Shell
Unix
Sed
Awk
Split one file into multiple files based on delimiter
Linux
Unix
Awk
Split
Turning multiple lines into one comma separated line
Linux
Perl
Unix
Sed
Awk
find difference between two text files with one item per line
Bash
File
Scripting
Sed
Awk
Select row and element in awk
Awk
How to add to the end of lines containing a pattern with sed or awk?
Bash
Sed
Awk
grep for multiple strings in file on different lines (ie. whole file, not line based search)?
Bash
Awk
Grep
cut or awk command to print first field of first row
Linux
Bash
Unix
Awk
How to remove double-quotes in jq output for parsing json files in bash?
Bash
Awk
Sed
Jq
Insert multiple lines into a file after specified pattern using shell script
Linux
Bash
Shell
Sed
Awk
awk - concatenate two string variable and assign to a third
Awk
Gawk
Using sed, Insert a line above or below the pattern?
Scripting
Sed
Awk
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
Shell
Perl
Awk
Sed
Pattern Matching
Command line: search and replace in all filenames matched by grep
Linux
Perl
Awk
Sed
Grep
Using awk to print all columns from the nth to the last
Linux
Awk
Why doesn't `\d` work in regular expressions in sed?
Regex
Linux
Awk
Sed
Printing with sed or awk a line following a matching pattern
Awk
Sed
how to remove the first two columns in a file using shell (awk, sed, whatever)
Perl
Shell
Awk
Sed
Cut
Using AWK to Process Input from Multiple Files
Awk
How to remove leading whitespace from each line in a file
Unix
Sed
Awk
Grep
Swap two columns - awk, sed, python, perl
Sed
Awk
How to decode URL-encoded string in shell?
Bash
Shell
Awk
Sed
Urldecode
Print line numbers starting at zero using awk
Awk
How can I get the length of an array in awk?
Awk
Can we use shell variables in awk?
Awk
How do I use shell variables in an awk script?
Bash
Shell
Awk
How do I view all ignored patterns set with svn:ignore recursively in an SVN repository?
Svn
Awk
Grep
How can I format the output of a bash command in neat columns
Bash
Awk
Zsh
Convert date formats in bash
Linux
Bash
Date
Awk
How to remove a character at the end of each line in UNIX
Unix
Awk
Sed
Assigning system command's output to variable
Awk
Pipe
Calling an executable program using awk
Shell
Awk
Trim leading and trailing spaces from a string in awk
Shell
Unix
Awk
Easiest way to extract the urls from an html page using sed or awk only
Html
Regex
Bash
Sed
Awk
Remove non-ASCII characters from CSV
Sed
Awk
Remove all text before colon
R
Unix
Replace
Sed
Awk
How to get first n characters of each line in unix data file
Linux
Unix
Awk
Cut
Use awk to find average of a column
Bash
Awk
How to UNCOMMENT a line that contains a specific string using Sed?
Bash
Awk
Sed
Replace whitespace with a comma in a text file in Linux
Linux
Shell
Csv
Sed
Awk
Create a dedicated folder for every zip files in a directory and extract zip files
Linux
Shell
Sed
Awk
Unzip
Grep output with multiple Colors?
Bash
Colors
Sed
Awk
Grep
How can I shuffle the lines of a text file on the Unix command line or in a shell script?
Shell
Random
Command Line
Awk
Shuffle
How to use awk to print lines where a field matches a specific string?
Sed
Awk
How can I pass variables from awk to a shell command?
Shell
Awk
Parameter Passing