Submitted Questions

  • Print nth column of pattern

    How to print nth column of a pattern/file without using awk,cut commands?

    Sonu

    • Mar 1st, 2018

    Cat sample.txt | grep -o .$

    Praveena Rao

    • Oct 24th, 2017

    This one is for pattern and not file:
    var=hello
    echo ${var:n:1}