If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Position Awk text output in screen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-03, 06:04
alkhatib alkhatib is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
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
Reply With Quote
  #2 (permalink)  
Old 10-20-03, 23:46
karthi_tvr karthi_tvr is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 10-26-03, 05:57
alkhatib alkhatib is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 11-06-03, 12:08
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
Re: Position Awk text output in screen

Quote:

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On