just for the record, the -p switch prints every line (after the
processing) for you, so

perl -pie 's/\t/|/g' FILENAME

would do it ( and the -i says edit it in place if you so desire)

charles 

On Thu, 2 Dec 1999, Iain Wade wrote:

> perl -ne 's/\t/|/g; print;' FILENAME
> 
> ----- Original Message ----- 
> From: Steve Lee <[EMAIL PROTECTED]>
> To: RedHat Maillist <[EMAIL PROTECTED]>
> Sent: Thursday, December 02, 1999 10:12 AM
> Subject: script
> 
> 
> > can someone show me a quick
> > script to insert | in place of tabs
> > 
> > for example: i have 40 lines with many columns
> > delimited by tabs that require it to be delimited 
> > by | but in excel i can't do that. so 
> > i would export the excel file as a text delimited by
> > tabs than would like a script to insert | in place of
> > the tab.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to