Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gunghopatriot

    Creating a terminal menu with scrollable text

    I am using a terminal only so no GUI and using Free Pascal 2.6.2. If I have a screen that begins on line 5 I can use the arrow keys to move down to say line 26, and if I get to line 27 it goes back to line 5, and line 4 wraps to line 25. All good and works with enter if a line is selected. My...
  2. gunghopatriot

    Open file and print new line that is appended

    Need to open a file and if a new line is appended, then need to print it. Opening the file is no problem, but how does one check if a new line has been recently appended to the log file?
  3. gunghopatriot

    sort

    Thanks for your reply, I first tried awk then gawk and get the following error: # gawk '/^host/{h0=$0;continue}{print h0":"$0}' pkgs.txt |sort -d |awk -F':' '{if(h0!=$1){h0=$1;print h0} print $2}' gawk: (FILENAME=pkgs.txt FNR=1) fatal: `continue' outside a loop is not allowed
  4. gunghopatriot

    sort

    I have some data host3719 NK-JDK170_25_32-1.7.0_25-25.i686 NKJAS-JBOSS-ENV-1.0-24.x86_64 NKJAS-JBOSS-EWS_64-2.0.1-3.x86_64 NK-JDK170_25_64-1.7.0_25-25.x86_64 NKSGI-AGENT-JBOSS-1.0-9.x86_64 host7723 NKSGI-AGENT-JBOSS-1.0-9.x86_64 NK-JDK170_25_64-1.7.0_25-25.x86_64...

Part and Inventory Search

Back
Top