• Bash - For loop 1 to 10
    16 February

    Bash for Loop 1 to 10

    Using for Loop with seq Command To loop from 1 to 10 in the Bash shell: Use the for keyword to start the for loop. Use i as a loop variable, which is accountable for taking values from 1 to 10. Use the $(seq 1 10) expression, which is a command substitution executing the seq […]

  • awk print $2
    05 January

    What is awk print $2

    In this tutorial, we will see about what is meant by awk print $2. awk is interpreted programming language. It is very powerful programming language and used for text processing. Awk stands for the names of its authors “Aho, Weinberger, and Kernighan”. awk print $2 As said before, awk can be used for text processing. […]

  • 18 January

    Sed Command in unix

    Sed (Stands for stream editor) is a command line utility to modify each line of a file or stream matching a specified string. It makes basic text changes to a file or input from a pipeline. Sed command can perform variety of functions on file like, searching, find and replace, insertion or deletion. Most common […]

  • 16 October

    Find command in linux

    In this post, we will see about find command in linux. Find is an important and one of most widely used command in Unix and Linux operating systems. It is used to search and locate list of files and directories based on conditions you specify for files that match the arguments. Find command lets you […]

  • 15 October

    Grep command in unix

    In this post, we will see about grep command in unix. The grep command stands for "Global Regular Expression Print" and is used to search text or searches the given file for lines containing a match to the given strings or words. It is a powerful file pattern searcher in Linux and Unix-like operating systems. […]

  • 26 September

    What is awk print $1?

    1. Introduction awk is interpreted programming language. It is very powerful and used for text processing. Awk stands for the names of its authors “Aho, Weinberger, and Kernighan”. One of its fundamental features is the ability to easily extract specific columns from a text input. The command awk print $1 is used for this purpose. […]

  • 24 September

    sed Replace String in File

    In this post, we will see how to replace String in file using sed in linux. Problem How to find and replace "Text1" with "Text2" using sed command in linux. Solution Sed stands for stream editor.It reads the file and modifies the file as provided by list of sed command.By default, input is written on […]

  • 24 September

    Find file containing text in linux

    In this post, we will see how to find files containing specific text. Problem You want to search for any specific text in all the files in a directory. Solution There are lots and lots of files on linux or unix server. You can find and locate a file using find command but it is […]

  • 24 September

    find file by name in linux

    In this post, we will see how to find file by name in linux. You can use "find" command to find file by name. Find file in the current directory Here is a simple command to find file "letters.txt" in current directory. find . -name letters.txt $ find . -name letters.txt ./txtFiles/letters.txt If you want […]