I need to insert a page break (“\f”) in front of the first header line of a report, like this:
“\f”LP240 Date 06/21/10
I’m using the following awk code:
awk '{sub("LP240","\fLP240");print}' inputfile > outputfile
This works and inserts the page break, but I only want to do this for the...
I'm trying to use the following awk script to output a Windows batch file that will create home directories for new users on a Windows box. The script reads from a newuser.txt setup file and pulls the username from the second field. Since Windows uses backslashes for directory paths, I need to...
The app event log on our Exchange 2003 server is registering event 9661 for the MSExchangeIS service, with the following description:
The Unsolicited Commercial Email default filter level has been updated. The new value is 8.
The problem is that we haven't installed the Intelligent Message...
We have several large clients that have access to our UNIX system, and we set up their users within pre-defined user ID# ranges in /etc/passwd. I want to be able to find the highest user ID# used within a range and redirect the output to a temporary file (lastnum.tmp) for use in another script...
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.