Tag: Bash
Get a list of all shell built-ins
bash05 July, 2023Time to read: 1 minsGet information about all the shell built-in commands with the help built-in command.
Inspect text that contains control characters in bash
bashunicode05 July, 2023Time to read: 2 minsInspect text that contains control characters with the xxd command. xxd can also be useful when you want to see the bytes of UTF-8 (Unicode) encoded files.
Join the lines of two files based on a common column
bashSQL04 July, 2023Time to read: 3 minsSee how to join the lines of two files in bash, based on a common column with the join command. You'll also see how to perform SQL-like joins on files.
Get specific rows from a file
bash29 June, 2023Time to read: 2 minsUser awk's NR built-in variable to print only specific rows from a file.
Split the even and the odd lines of one column into two separate columns
bash27 June, 2023Time to read: 3 minsSee how the paste command works by splitting the even and the odd lines of one column into two separate columns
Get specific columns from multiple files and paste (combine) them into a new file
bash25 June, 2023Time to read: 1 minsUse the cut or awk commands to extract specific columns from files and create a new file that has all the previous columns with the paste command.