dd if=test.txt bs=1 skip=99 count=7 2>/dev/null; echo -e

You can skip the '2>/dev/null' if you don't mind seeing the "7+0
records out" appended to your data

If you are not outputting to an interactive prompt, (like you are
capturing the result of this into a variable, then remove the 'echo
-e' it's just to make it look better at the prompt.  (Same with the
'2>/dev/null')

On 8/29/2008, "Chris Penn" <[email protected]> wrote:

>Rewording the question.  I need characters from 100-106, so now I need
>to cut everything from 107 on from each line.
>any ideas?
>
>Chris...
>
>On Fri, Aug 29, 2008 at 1:06 PM, Chris Penn <[email protected]> wrote:
>> K, I figured out how to do this with cut.
>> cut -b 1-2 --complement file
>>
>> On Fri, Aug 29, 2008 at 12:39 PM, Chris Penn <[email protected]> wrote:
>>> I have a file, I want to create a new file that goes the my file and
>>> delete the first 99 characters, including spaces, from each line.
>>> How do I do this?
>>>
>>> Chris...
>>> --
>>> "As we open our newspapers or watch our television screens, we seem to
>>> be continually assaulted by the fruits of Mankind's stupidity."
>>>  -Roger Penrose
>>>
>>
>>
>>
>> --
>> "As we open our newspapers or watch our television screens, we seem to
>> be continually assaulted by the fruits of Mankind's stupidity."
>>  -Roger Penrose
>>
>
>
>
>--
>"As we open our newspapers or watch our television screens, we seem to
>be continually assaulted by the fruits of Mankind's stupidity."
> -Roger Penrose
>_______________________________________________
>LinuxUsers mailing list
>[email protected]
>http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers

Reply via email to