Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Posts
    4

    Unanswered: Position Awk text output in screen

    Dear Experts,


    Can any one guide me to how can I locate position of AWK output text in specific (raw, col) all the time. i.e. I want to override auto scrolling feature .


    Thanks for Help
    Fras

  2. #2
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    12
    Hi

    You can print $NR from awk to get the position of a certain pattern in awk. $NF will give you the total number of fields.
    Thanks and Regards
    Karthik R

  3. #3
    Join Date
    Oct 2003
    Posts
    4
    Thank you ,,

    Actually I'm reffering to setting (enforcing) the location of awk output to specific row,col on the screen .

    Thanks again for help,
    Fras

  4. #4
    Join Date
    Jun 2002
    Location
    UK
    Posts
    525

    Re: Position Awk text output in screen


    Can any one guide me to how can I locate position of AWK output text in specific (raw, col) all the time. i.e. I want to override auto scrolling feature .
    The 'auto scrolling' feature is your shell NOT awk. Why don't you pipe the output from awk into 'more' or redirect your output to a file and view it from there?

    awk '{doStuff}' yourFile | more
    awk '{doStuff}' yourFile > newFile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •