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 bkrike 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 darfader

  1. darfader

    changeable filename

    thank you all rapid as ever ;)
  2. darfader

    changeable filename

    Hi, I have been using the following to move a file from Unix to Windows -- before #! /bin/ksh # Move to appropriate directory cd /user/transfers/out/in_cab mv unprocessed/*.* . mv journey_tester.xml journey_tester.txt # FTP all files in directory ftp -inv server_name <<EOF user username...
  3. darfader

    not stepping through inner loop correctly

    Hi, I am having some trouble trying to loop within a loop. I am treating this like a parent/child situation where I want the parent field reproduced once and the child field is reproduced for each of its parent. Unfortunately it is not stepping through the inner loop and the same three child...
  4. darfader

    Search and Replace

    well well well thanks predamarcel :)
  5. darfader

    Search and Replace

    thanks chaps, I think I'll stick with the SED one, I have just read that if I wanted to do more than one at time, I could use the -e flag :)
  6. darfader

    Search and Replace

    thanks Greg
  7. darfader

    Search and Replace

    Hi, I am currently opening a file and using this command :%s / /;/g replacing a tab with a semi-colon, I was just wondering if I could do it without manually opening the file ? tia,
  8. darfader

    List Directories only

    yes, they both work, thanks ;)
  9. darfader

    List Directories only

    env SunOS 5.6 ksh Hi, I used to use this ls -l | grep ^d to list directories but am now receiving this error $ ls -l | grep ^d d: not found $ Usage: grep -hblcnsviw pattern file . . . what is another way to list only directories ? tia,
  10. darfader

    Remove char from EOL

    thank you azimuth0 ;)
  11. darfader

    Remove char from EOL

    Hi, here is a quickie for you ;) hopefully I have a text file with 27997 lines similar to these, only longer 213.16;72.38;1/8/2003 00:00:00;;;;AR AUG 03; 213.16;72.38;2/8/2003 00:00:00;;;;AR AUG 03; 213.16;72.38;3/8/2003 00:00:00;;;;AR AUG 03; 213.16;72.38;4/8/2003 00:00:00;;;;AR AUG 03...
  12. darfader

    Finding Large Files

    thanks chaps :D
  13. darfader

    Finding Large Files

    Hi, I am using this to locate large files ls -l | sort -n +4 | tail -9 however, it only reports from the current directory I piped it to find. but without success Is there a way to fine the top nine largest files from a directory and it's sub-directories, tia,
  14. darfader

    advancing a token

    so you don't like strtok() either :) thank you very much Salem, this is just fine....
  15. darfader

    advancing a token

    a single record United Kingdom;EUMA;Europe + Middle East + Africa;GBR;GB;EL;Equant LNO;1078314.00;LGWTRUS2;108324F;2449800;3033.00;1S;LGW11S-23; ; ; ;X25;1116.00;ANUK820113;BT;P; ; ;0.00;9.60;;19980316.00;;;SABRENC;LGW;LGW1; ;28.27;45.18;0.00;0.00;0.00;0.00;0.00;0.00;0.00;0.00...

Part and Inventory Search

Back
Top