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 gkittelson 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. lgtshadow

    start/stop services script?

    Is it possible to start and stop window's services using a script? (or command line/dos command) Currently I have a large batch file that is set to run every night and it's now become necessary to stop/start the database service so that I can minuplate the database files without them getting...
  2. lgtshadow

    Swap column / row

    Great that does it. It amazes me how quick people are with help here thank you.
  3. lgtshadow

    Swap column / row

    How can I transpose all the rows for columns in a text file? All the fields are space delimited and I have no idea how many columns there are to start off with. I had a simple thing to do one at a time but I can't figure out how to make this expand to do all of the columns at once. gawk '$3...
  4. lgtshadow

    first line print problem

    > The problem is that the initial value of i is zero, so the test (!i) returns > true for the first line. One solution is to reverse the value of i Thank you that solves the problem. > Setting the variable Pre to zero doesn't seem to have any use, so I > removed it. Yes sorry about that i...
  5. lgtshadow

    first line print problem

    I'm quite new to awk and I'm having a problem i don't understand. Using the following I always seem to get the first like of my file printing out (which i don't want). [tim]$ gawk '/Pre/{Pre=$0;i=0;next} NF{if(!i)print;++i;next}' test/30-b18-a.txt invalid command name &quot;nu&quot; <-- first...

Part and Inventory Search

Back
Top