linux shell

Split a file into two or more files

Jun 11,93

The split command splits a file into two or more files. You need to specify two parameters: the prefix of …

Read More

Prepare a file for printing

Jun 11,93

The pr command prepares a text file for printing in Linux. By default, pr adds headers that include the filename, …

Read More

Merge files line by line

Jun 11,93

To merge files line by line, you can use the paste command. By default, the corresponding lines of each file …

Read More

Join lines of two files

Jun 4,93

The join command joins lines of two files on a common field. By default, fields are separated by spaces, although …

Read More

Remove duplicate lines from a text file

Jun 4,93

The uniq command is used to remove duplicate lines from a text file in Linux. By default, this command discards all …

Read More

Show the full path of shell commands

Jun 4,93

The which command shows the full path of shell commands in Linux. This command searches only paths set in the …

Read More
Geek University 2022