This is my first blog. I got an opportunity to attend Noufal Ibrahim Sir's The Lycaeum Mentoring program. He asked me to read the book "The Unix Programming Environment". I was familiar with basic Unix commands because I have been using Unix for a while. The first task was to read the book "The Unix Programming Environment" By Brain W. Kernighan and Rob Pike. I could still study about some basic commands.

ls- List files and directories.

cd- Change directory

cat- Concatenate and display files.

grep- Searches files for a specified string or expression.

man- The man command  displays information  from  the reference manuals.

mkdir- Make a directory

rm- Remove files or directories

pwd- Confirm current directory

pipe (‘|’)- When two commands are piped together, the stdin of the second program is read from the stdout of the first program. This creates a powerful mechanism for running complex commands quickly.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity”

Dennis M. Ritchie

My first presentation is paste command.Paste command is one of the useful commands in Unix. It is used to join files horizontally (parallel merging) by outputting lines consisting of lines from each file specified, separated by tab as delimiter  on the Unix terminal.For the following example there are three files having name state, capital and number.

By default, the paste command merges the files in parallel. The paste command writes corresponding lines from the files as a tab delimited on the terminal.

In the above command three files are merged by the paste command. There are two options in paste command.

1.  Specifying the delimiter

Paste command uses the tab delimiter by default for merging the files. You can change the delimiter to any other character by using the -d option.

2. Merging files in sequentially

You can merge the files sequentially using the -s option. It reads all the lines from a each file and merges all these lines into a single line.

The other usage of paste command is that it can also be used to merge N consecutive lines from a file into a single line. The N can be specified by specifying number hyphens(-) after the command.

Before using gtypist I was slow in typing. But now I am improving day by day. I am also using Emacs Editor and was also referred to a video-series by Noufal Ibrahim known as Emacs Movies, which covers the basics of Emacs.

Stay tuned for next week, Thank You.