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...
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...
> 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...
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 "nu" <-- first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.