Re: a technical how to

From: Jerry McAllister (jerrymc_at_clunix.cl.msu.edu)
Date: 12/09/03

  • Next message: Steve Bertrand: "Re: help"
    To: homeyra_s@yahoo.com (homeyra g)
    Date: Tue, 9 Dec 2003 10:01:19 -0500 (EST)
    
    

    >
    > So, I hope this is the right address for this type of
    > question. If not would you please forward this and/or
    > let me know the correct address.

    Is it a text or binary file?

    First, I suggest working from a copy of the file for safety sake.

    For a text file, Use vi. Count down to which line is the last one
    you want to get rid of (lets say you want to get rid of 1-1152 and keep
    from 1153-end). Then, in vi, put your cursor on the first line
    and do '1152dd'. save the file off with ':wq' and voila, you got it.

    For a binary file, use dd and tell it to skip the bytes in front
    and start copying from there to end to the new file. You may also have
    to play around with blocksize and notrunc to get just what you want if
    you need to break it on some odd boundary.

    ////jerry

    >
    > Thanks,
    >
    > Here is the question: How to truncate a file from the
    > begining to a certain point in the file?
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > New Yahoo! Photos - easier uploading and sharing.
    > http://photos.yahoo.com/
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Steve Bertrand: "Re: help"

    Relevant Pages

    • Re: Almost Done: Need some Help in Generating FEATURE VECTORS
      ... #get rid of anything that isn't a letter, ... for i in msg: ... > it all lowercase: ... Do you Yahoo!? ...
      (comp.lang.python)
    • Re: Runs like a slug!
      ... Unless yahoo, gmail, and some few other well used sites are dangerous, I should be safe. ... (Instead of a new opperator, maybe you should just mind your own business.) ... I'm getting rid of 9.0 and trying some of the other programs suggested here. ...
      (microsoft.public.windowsxp.general)
    • Re: Hi-jacked Browser Solution?
      ... Yahoo. ... Can we get rid of that by d/l and re-installing IE? ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: The Cursed Yahoo Toobar
      ... Download and install the toolbar directly from Yahoo!. ... Pay attention before you download things from the internet. ... read carefully what you are agreeing to install. ... I used to be able to get rid of it by control panel -> Remove Programs. ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • active x controls that can access the hard disk
      ... that are part of windows that would allow a malicious ... script to write a binary file to the hard disk (like ... Do You Yahoo!? ...
      (Vuln-Dev)