Ask a Question related to Linux / Unix Administration, Design and Development.
-
John #1
Remove ascii code from a certain position in file
I'm very familiar with the tr command and use it a lot when removing
certain characters from files, but my situation today is involving
needing to remove a newline character from a certain area in the
file.... not all newline characters in the entire file.
If I had a 100 line file and wanted to state "ONLY Between lines 35
and 42, remove the newline character", how would I do that? I'm
thinking this would involve sed, but am unsure about the setup.
Thanks.
John Guest
-
check whether file is ascii or ebcdic
Hi How do I check whether a file is in ebcdic or ascii format ? Thanks, Nitish -
#26300 [Opn->Csd]: PB serialization ascii code greater than 127
ID: 26300 Updated by: iliaa@php.net Reported By: pierre-marie dot mouliere at arc-intl dot com -Status: Open... -
#26300 [NEW]: PB serialization ascii code greater than 127
From: pierre-marie dot mouliere at arc-intl dot com Operating system: HPUX PHP version: 4.3.3 PHP Bug Type: WDDX related Bug... -
ascii code use in urls
Hi I need to send <CR> within a postNetText call (it's pointing to an asp routine), I've been told that I should send the ascii code for <CR> rather... -
Line break ASCII code
I want to be able to strip line breaks from a string i've imported from a txt file into Director. Does Director have any functions that will do... -
Stephane CHAZELAS #2
Re: Remove ascii code from a certain position in file
2004-09-3, 06:40(-07), John:
Please don't multi-post, your question was already answered in> I'm very familiar with the tr command and use it a lot when removing
> certain characters from files, but my situation today is involving
> needing to remove a newline character from a certain area in the
> file.... not all newline characters in the entire file.
>
> If I had a 100 line file and wanted to state "ONLY Between lines 35
> and 42, remove the newline character", how would I do that? I'm
> thinking this would involve sed, but am unsure about the setup.
comp.unix.questions
--
Stephane
Stephane CHAZELAS Guest



Reply With Quote

