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 strongm 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. gillou

    Finding file with a specific time_stamp

    Thank you, Cakiwi ! Gilles
  2. gillou

    Finding file with a specific time_stamp

    Alleluia !! ;)
  3. gillou

    Finding file with a specific time_stamp

    sed 's/://g' means that you will substitue ("s") each ":" with ...nothing (/://)in each line (g). Gilles
  4. gillou

    Finding file with a specific time_stamp

    A possible solution : find your_search_path -mtime -1 -type f -ls | sed 's/://g' | awk '$10 < your-hour_without_: {print $11}' | xargs rm It workes but,surely, there's abetter way to do it. Bye, Gilles
  5. gillou

    Finding file with a specific time_stamp

    Hi, $11 means the field #11 of output for &quot;ls -al&quot; (the name of the file). To complete the Mrjazz solution's, i think you can try : find your_search_path -mtime -1 -type f -ls | grep 08:30 | awk ´{print $11 }´ | xargs rm Regards, Gilles
  6. gillou

    escaped characters in sed

    Try sed 's/&quot;\[]//g' filename. :)
  7. gillou

    swap lines in a file

    oups ! didn't see there's so many people ! (sorry,i use logfailed.sql for infile) Bye, ;-)
  8. gillou

    swap lines in a file

    Why don't you use a curde method with head and tail ? For example : #!/bin/ksh i=1 cat logfailed.sql | while read line do case $i in 12) head -26 infile | tail -1 >> outfile i=`expr $i + 1` ;; 13) head -14 infile | tail -1 >> outfile...
  9. gillou

    Hung Process

    I believe that for several OS, you have a command to display the activity for a process. On Sun, it's truss, on SGI, it's par and for the other i don't remember ... You may see if there's no Read/write activity. Good Luck, Gilles
  10. gillou

    awk&amp;print

    GREAT ! It workes, thank you very much !
  11. gillou

    awk&amp;print

    Hi, my problem is that i can't have &quot;'&quot; in my output, for example : awk '{printf &quot;'%s'\n&quot;,$1}' file to have something like : 'Field#1' \',&quot;'&quot;,&quot;''&quot;... doesn't work (even with command print). Thanks a lot !

Part and Inventory Search

Back
Top