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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Donatzsky

  1. Donatzsky

    Is there a way to read through a file and change its font

    sed 's/the font/courier new/g' <input.txt >output.txt Or... Open your text editor, find the preferences, find the part of the preferences that has to do with fonts and change it. Quite simple and painless really. You can even change the size. The two editors I have access to right now: Notepad...
  2. Donatzsky

    Awk with if statements

    Try awk "/Availability|Reboots/,/Bluescreens/" file.txt The trick is the quoting - Windows doesn't understand ''. The reason you get that error message is that | is used for redirecting output from one command to another, so what Windows sees is: Run "awk '/Availability" and send result to...
  3. Donatzsky

    floating point problem. newbie

    That does indeed seem strange. test.txt -------- 3,6 3,6 <- , as dec. point 3.6 3.6 <- . as dec. point 3,5 3,0 3.5 3.0 0,6 0,3 0.6 0.3 -------- test.awk -------- { printf("%10.1f %10.1f %10.1f\n",$1,$2,$1-$2) } -------- >gawk -f test.awk test.txt 3,600000 3,600000 0,000000 3,000000...
  4. Donatzsky

    automatically Zip files based on date? NEWbie

    Columb: Actually awk is readily available, in the form of gawk, from GnuWin32, as is most of the GNU tools. Get it here. And there's always Cygwin. As for the Windows tools being pathetic. Well, they aren't exactly great but certainly good enough for this task, and both awk and perl would...
  5. Donatzsky

    I am looking for help on sed programming.

    http://sed.sourceforge.net/ and http://groups.yahoo.com/group/sed-users/ is probably all you'll ever need when it comes to Sed. The Yahoo mailing list is populated by some very friendly people, that seems to be spending way too much time using Sed, and I believe I've even seen a GNU dev post there.

Part and Inventory Search

Back
Top