• + 0 comments

    The "|" character is know as a pipe and is used to redirect the output of one command as input to another command.

    The "cut" command is a utility that allows you to extract specific columns or fields from a text file or output.

    The "-c" option of the cut command specifies the character positions or range of characters to extract from each line. So "cut -c3" extract the third character from each line of the input.

    while read lines;
    do
        echo $lines | cut -c3
    done