Linux Admin – paste Command
The paste command is used to merge lines of files. Following are the commonly used switches. SwitchAction-dSpecify delimiter-sPaste one file at a time instead of in parallel The best example to clearly…
The paste command is used to merge lines of files. Following are the commonly used switches. SwitchAction-dSpecify delimiter-sPaste one file at a time instead of in parallel The best example to clearly…
Following is the syntax for tr. This command translates or deletes characters. tr [OPTION] SET1 [SET2] Following are the commonly used switches and character classes with tr. CommandAction-dDelete-sSqueeze repeated text in SET1…
sedĀ is a complex utility to master. This command streams the editor for filtering and transforming text. Entire books have been written dedicated to using sed proficiently. So please keep in…
cutĀ andĀ grepĀ are two of the most useful and common commands for a CentOS Administrator. The cut is extremely useful for dealing with delimited files such as Linux configuration files, Linux preference…
The cat command is used to concatenate files and print to standard output. Formerly, we have demonstrated both uses and abuses with the cat command. cat servers the following distinct purposes ā…
The teeĀ is a simple command, letting an administrator write command output and view a file at the same time. This simple command can save time over first writing stdout to…
Following are the common switches used withĀ uniq. This command reports or omits repeated lines. SwitchAction-cPrefix lines by the number of occurrences-iIgnore case-uOnly print unique lines-wCheck chars, compare no more than n chars-sSkip…
sortĀ has several optimizations for sorting based on datatypes. This command writes sorted concatenation of all files to standard output. However, be wary, complex sort operations on large files of a…
wc is useful for counting occurrences in a file. It helps print newline, word, ad byte count from each file. Most useful is when combined with grep to show matches for…
The head is the basic opposite of the tail in relation to what part of the file operations are performed on. By default,Ā the headĀ will read the first 10 lines of…