Browsed by
Category: UNIX

Diff command in UNIX

Diff command in UNIX

In this session, we will be looking at the use of diff command in UNIX. While on a higher level, we know that diff command in UNIX is used to compare two files but very few would have tried to understand the actual meaning of the output of diff command. Also, note that diff command compares the file row-by-row. First row of first file with first row of second file and so on. Actually when you run diff command, diff…

Read More Read More

UNIX Grep command examples

UNIX Grep command examples

Hi Friends, today we will see some use of UNIX GREP command examples which is very useful and powerful command. As we all know that grep command is used mainly for pattern search in files. But this is just the basic explanation of grep command. Today we will see how grep is enriched with a lot of options to do pattern search in many other ways. Let’s consider below example file on which we will be performing our operations. The…

Read More Read More

UNIX Awk command examples – Part 1

UNIX Awk command examples – Part 1

In this tutorial, we will discuss about UNIX awk command. Awk is a very powerful command in UNIX which is very useful while doing complex scripting and file processing. This command can be used for processing a file on a row level or on a column level or both. This command can also be used to extract particular columns or rows of any file. Awk command can match a pattern in file, can output the rows containing those records and…

Read More Read More