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 TouchToneTommy 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 chomps303

  1. chomps303

    rcmd windows????

    Man I love this board!!!! Your suggestion work exactly as I needed!!! THANKS Brandt
  2. chomps303

    rcmd windows????

    Does anyone know of a utility for Windows that I can use to do a rcmd command on a unix box? Thanks Brandt Eppler PMP
  3. chomps303

    Sed or grep help

    Thanks for all your good answers!! Brandt
  4. chomps303

    Sed or grep help

    How can I fina line if filed 1 eq a P if I do a grep "P" I will get 3 I only want to get the 2 that start with a P ie: "P","123","abc345","678" < Get this one "S","194","abc345","678" < don't get this one "S","123","abc345","P" < don't get this one "P","789","abc345","678" < Get...
  5. chomps303

    FancyIndexing

    Thanks!! I don't understand your answer. Can you explain or give syntax? Thanks in advance. Brandt
  6. chomps303

    FancyIndexing

    How can I turn off FancyIndexing I don't want my directories browseable. There must be a .htm file or nothing should show. Thanks Brandt I am on apache on SCO 5.07
  7. chomps303

    Directory browsing

    How can I turn off FancyIndexing I don't want my directories browseable. There must be a .htm file or nothing should show. Thanks Brandt I am on apache on SCO 5.07
  8. chomps303

    Getting rid of leading zeros

    OK field 5 & 13 take leading 0's out thanks "P","A","","","000000000501083","0","aaaaaaa","bbbbbbbb","cccccccccc","A","","","000000000546758","0","bbbbbbb","cccccccc" "P","A","","","000000000546758","0","bbbbbbb","cccccccc","cccccccccc","A","","","000000000546758","0","bbbbbbb","cccccccc"...
  9. chomps303

    Getting rid of leading zeros

    I can't seem to get the syntax correct. I tried awk 'BEGIN{FS=OFS=","}{sub(/"0*/,"\"",$5);sub(/"0*/,"\"",$16);print}' foo > foo. out field 5 works fine fild 16 does not. Thanks Brandt
  10. chomps303

    Getting rid of leading zeros

    Great!! What would the syntax be for a second field say field 10? Thanks Brandt
  11. chomps303

    Getting rid of leading zeros

    OK Thanks I forgot to add that the field is NOT the first one. It would be the 5th field Thanks Brandt ie: "P","A","","","000000000501083","0","aaaaaaa","bbbbbbbb","cccccccccc" "P","A","","","000000000546758","0","bbbbbbb","cccccccc","cccccccccc"...
  12. chomps303

    Getting rid of leading zeros

    I have a file with several fields. There is a field that has leading zeros, how can I get rid of them? I am only showing 1 field below in sample. Thanks in advance, Brandt ie: "000000000501083" "000000000546459" "000000000006758" "000000000314515" "000000000332358" "000000000082485"...
  13. chomps303

    sed or awk question

    THANKS to all who responded. Once again you all are the best reference available in the Unix world. Worked great!! Brandt Eppler PMP
  14. chomps303

    sed or awk question

    vgersh99 When I try your line I get the Literal: "AIL","A","","","","000000000156425","","","3","1","","N","N","","","","","","", "","20041114","20041126","","","","","","","","","","","","","Y","","$(date +%Y%m%d)" Thanks Brandt
  15. chomps303

    sed or awk question

    I have a standard ascii comma, quoted file. I need to add todays date to the end of the record. This will run in a script and run daily... So the date will be a variable. ie: "aaaaaaa","bbbbb","cccccc","ddddd" < Now "aaaaaaa","bbbbb","cccccc","ddddd","20041207" < Needs Thanks Brandt

Part and Inventory Search

Back
Top