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 Chris Miller 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. Dominal

    vsftp and sendmail problem

    vsftp: I have enabled the anonymous upload but still got the "permission denied" error. The upload directory is set to 777. sendmail: My apache server can send out email but not receiving email. The domain is registered in dyndns.com. Any hints? Thanks!
  2. Dominal

    How can I write the header to tape?

    I need to write some data (header+data+trailer) on a tape which will read by a 3480 tape drive on IBM system.
  3. Dominal

    How can I write the header to tape?

    Hi! Would you please tell me how to write the tape header? Any special command for that? Thanks!
  4. Dominal

    Split text file into pieces

    Thanks! However, if use split, is it possible to make the output file in the format source01.txt, source02.txt...etc instead of sourceaa.txt, sourceab.txt...? I tried the csplit but if I run "csplit -f source srouce.txt 300", the first file created source01 only contains 299 lines...
  5. Dominal

    Split text file into pieces

    We have a text file source.txt with unknown number of lines. In bourne shell, how to split it into several files with 300 lines each and named the files in the format source##.txt? Thanks!
  6. Dominal

    dd: unexpected short write, wrote 0 bytes, expected 512

    Hello! When we write a 50M text file (bigfile.asc) to our DEC TKZ60 (3480) tape drive, the following error displayed: dd: unexpected short write, wrote 0 bytes, expected 512 The command we used is: dd if=bigfile.asc of=/dev/rmt/0cn bs=512 It seems the error is refer to end of tape but the...
  7. Dominal

    Add variable preceding numbers

    Ygor & DanielHozac, It works! Thanks for your help!
  8. Dominal

    Add variable preceding numbers

    Ygor, sorry for misleading. What I mean is, the value in file1 is unknown, or better say it changes everyday. If file1 contains 14, we need to add 5 preceding 0s to 0000014. If file1 contains 8682, we need to add 3 0s to 0008682. My approach is to add seven 0s to the number in file1 which...
  9. Dominal

    Add variable preceding numbers

    Hello! I have a file which stores a number between 1~9999999. However, if the number is less than 7 digits, I need to fill it with 0s. e.g. if the number is 14, then I need to make it be 0000014. Any hints? Thanks!
  10. Dominal

    Remove the date from a text file

    Million Thanks! ^_^
  11. Dominal

    Remove the date from a text file

    Thanks Olded and Dickiebird! However, the +%Y%m%d only shows the date in the format 20030305 instead of 003064(0->century, 03->year, 064->day 64 of year 2003). How can we transform into the day of the year?
  12. Dominal

    Remove the date from a text file

    Hi! I have a text file with many lines and each line contains today's date in the format cyyddd (century,year,day of the year) in different position. How to chop all the date using shell script (sh/csh)? Thanks!
  13. Dominal

    Script to chop out even numbers of lines

    Hi! How to remove the even numbers of lines from a text file? i.e. the result only contains lines 1,3,5,7... Thanks!

Part and Inventory Search

Back
Top