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 wOOdy-Soft 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 DanNJ

  1. DanNJ

    .dt/errorlog question

    Quick question, in you script I see you put {} around your variables when you call them and that you double up on some other things like [[]] (()) any reason for this?
  2. DanNJ

    .dt/errorlog question

    How does the system handle the rename and delete of the errorlog files? The reason I ask is because I am funning various scripts with set -x so that I can track them in the error log, now due to an increase in runs my errorlogs are growing too large. Is there a way to change how the system...
  3. DanNJ

    UNIX to perl Help

    Thx very much, I have a lot of questions but I will see if I can figure it out on my own first. Thanks for the jump start.
  4. DanNJ

    UNIX to perl Help

    DATE,TIME,ERROR,EXIT CODE,ERROR MSG example: 20031002,13:01:01,ERROR,1,Error copying file xyz
  5. DanNJ

    UNIX to perl Help

    nawk 'BEGIN { FS = "," } nawk 'At the BEGINing set the Field Seperator to "," $1 == '"$DATE2"' check if the first field is equal to "$DATE2" && $3 == "ERROR" Also check is the third field is equal to "ERROR" { print $5...
  6. DanNJ

    UNIX to perl Help

    I want to port some unix scripts to perl, mostly for the fun of it. If anyone is kind enough could you help me convert this stuff. Converting these two functions should give me enough of a feel for it to do the rest. #!/bin/sh ################## # USAGE_function # ##################...
  7. DanNJ

    Working with large directories

    That would mean we would create approx 100 directories a day. And have to maintain 300 at a time. Since grep is not recursive it would make research very difficult.
  8. DanNJ

    Working with large directories

    Working with large directories I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs. There are two problems with this...
  9. DanNJ

    Working with large directories

    Working with large directories I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs. There are two problems with this...
  10. DanNJ

    Working with Large Directories

    I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs. There are two problems with this. 1. Our crontab fails to delete...
  11. DanNJ

    exporting a variable out of a function so the rest of the script can s

    I forgot to call it when I typed it here, it seems that () keep the variables within the function but {} let them out. interesting.
  12. DanNJ

    exporting a variable out of a function so the rest of the script can s

    Why won't this work? How can I make it work? Start Script: a1()( var=2; export var ) echo $var
  13. DanNJ

    Ygor and others, help combining 2 Awk scripts

    Ygor, thx again that worked great, any chance you could give me a bit of an explanation of how it works. I have been studying awk since you first helped me but this is way over my head.
  14. DanNJ

    Ygor and others, help combining 2 Awk scripts

    EOF is the last line of each record. There can be many records in 1 file. I want to write "Line 1" after the last instance of "Page:" in each record. I want to write "Line 4" after the last instance of “Begin” in each record. "Begin" comes after...

Part and Inventory Search

Back
Top