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. 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...
  16. darfader

    advancing a token

    int process_record(char * current_record) { char * buffer; char activity_month[BUFSIZ]; char current_month[BUFSIZ]; int fields = 0; time_t curtime; struct tm *loctime; char record[BUFSIZ]; int loop, count = 0; curtime = time(NULL); loctime = localtime(&curtime); strftime(current_month...
  17. darfader

    command for a text file

    thanks Dickie Bird, thats done it :)
  18. darfader

    command for a text file

    Hi, can anyone show me a command for copying lines from a text file please ? I have a text file with 28,000 lines in it and I just want a few to test a program, so I did this tail CIRP_APRIL.txt > oldfile however, it has not quite worked ! Although the 10 records look the same, something is...
  19. darfader

    error codes

    thank you all, I have made of note of these locations :)
  20. darfader

    error codes

    thanks Wonboodoo, unfortunately man 139 doesn't produce anything :( this was what I was looking for 139. NFS write failed for server variable: RPC: Timed out cheers

Part and Inventory Search

Back
Top