Re: Remove first comma in a file
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 02/27/04
- Next message: Bill Marcum: "Re: Bash function undefined when using "batch""
- Previous message: Dale DeRemer: "Re: Remove first comma in a file"
- In reply to: Dale DeRemer: "Remove first comma in a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Feb 2004 21:58:20 GMT
On Fri, 27 Feb 2004 16:18:22 -0500, Dale DeRemer <dderemer_nospam@agmc.org> wrote:
>
>
> I have a file of the format:
>
> 12,Smith, Bob
> 34,Jones, Eve
> 56,Doe, John
>
> What I want to do is replace the first comma with another character giving:
>
> 12%Smith, Bob
> 34%Jones, Eve
> 56%Doe, John
>
> Any suggestions?
>
>
Open the file in ed and enter:
g/,/s//\%/
wq
AC
-- ed(1) Check out the original tutorials by Brian W. Kernighan at the Ed Home Page http://tinyurl.com/2aa6g
- Next message: Bill Marcum: "Re: Bash function undefined when using "batch""
- Previous message: Dale DeRemer: "Re: Remove first comma in a file"
- In reply to: Dale DeRemer: "Remove first comma in a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|