unix shell script required

unix shell script required

Post by Mark » Thu, 09 Oct 1997 04:00:00



i need a script that i can pipe a file to which will replace all
occurances of the hash sign with the pound sign.
Thanks in anticipation
--
Mark

 
 
 

unix shell script required

Post by Kurt J. Lanz » Thu, 09 Oct 1997 04:00:00



> i need a script that i can pipe a file to which will replace all
> occurances of the hash sign with the pound sign.
> Thanks in anticipation
> --
> Mark

Write your own. Use 'tr' or 'sed'. Does the concept of the man page ring
a bell?
--
Kurt J. Lanza


 
 
 

unix shell script required

Post by Jean-Pierre Radle » Thu, 09 Oct 1997 04:00:00


Mark propounded:
| i need a script that i can pipe a file to which will replace all
| occurances of the hash sign with the pound sign.
| Thanks in anticipation

/bin/sed does this handily.

--

 
 
 

unix shell script required

Post by Steve Wert » Thu, 09 Oct 1997 04:00:00



>Mark propounded:
>| i need a script that i can pipe a file to which will replace all
>| occurances of the hash sign with the pound sign.
>| Thanks in anticipation

>/bin/sed does this handily.

Or 'tr' for the 'sed'-impaired.

-sw

 
 
 

unix shell script required

Post by Jean-Pierre Radle » Thu, 09 Oct 1997 04:00:00


Daniel W. Erskine propounded:
| Mark propounded:
| > i need a script that i can pipe a file to which will replace all
| > occurances of the hash sign with the pound sign.
| > Thanks in anticipation
| >
| > Mark
|
| Greetings:
|   What's the difference between the hash mark, and the pound sign?

Pound, as in the currency used in Great Britain... :-)

--

 
 
 

unix shell script required

Post by Daniel Erskin » Thu, 09 Oct 1997 04:00:00



> Daniel W. Erskine propounded:
> | Mark propounded:
> | > i need a script that i can pipe a file to which will replace all
> | > occurances of the hash sign with the pound sign.
> | > Thanks in anticipation
> | >
> | > Mark
> |
> | Greetings:
> |   What's the difference between the hash mark, and the pound sign?

> Pound, as in the currency used in Great Britain... :-)



Greetings:
  In that case, I'ld use, "s/#/\&/g".

Hope this helps,
------------------------------------------------------
    THE PRECEDING REFLECTS THE VIEWS OF THE AUTHOR
   AND NOT, NECESSARILY, THE VIEWS OF EDWARD JONES.
------------------------------------------------------


 
 
 

unix shell script required

Post by Peter Bisse » Fri, 10 Oct 1997 04:00:00



> Daniel W. Erskine propounded:
> | Mark propounded:
> | > i need a script that i can pipe a file to which will replace all
> | > occurances of the hash sign with the pound sign.
> | > Thanks in anticipation
> | >
> | > Mark
> |
> | Greetings:
> |   What's the difference between the hash mark, and the pound sign?

> Pound, as in the currency used in Great Britain... :-)

> --


No - # is called the pound sign. Ask any publisher.
 
 
 

unix shell script required

Post by Donald Pag » Fri, 10 Oct 1997 04:00:00




> > Daniel W. Erskine propounded:

> > Pound, as in the currency used in Great Britain... :-)

> > --

> No - # is called the pound sign. Ask any publisher.

'#' is referred to as the 'number sign' and '' is referred to as the
'pound sign' to try and avoid such confusions.  These are the official
names used in the likes of Unicode 2.0 and the x/Open locales.  Publishers
may well use other names of course :-)

        Donald

 
 
 

unix shell script required

Post by David Clayt » Sat, 11 Oct 1997 04:00:00



.....

>> |
>> | Greetings:
>> |   What's the difference between the hash mark, and the pound sign?

>> Pound, as in the currency used in Great Britain... :-)

>> --

>No - # is called the pound sign. Ask any publisher.

We call it "hash" in Australia, maybe we need an our own International
OSR5 version as well?   :-)

Regards, David.
---------------

Melbourne, Victoria, Australia.

"Virtual Reality - Give it a rest, Actual Reality has me stressed enough as it is."

 
 
 

unix shell script required

Post by Juergen Ru » Sun, 12 Oct 1997 04:00:00





>>i need a script that i can pipe a file to which will replace all
>>occurances of the hash sign with the pound sign.
>>Thanks in anticipation
>Thanks for the advice, i used:-
>cat - | tr '\043' '\234' | lp -d printer_name

 #######
Another contribution to the most useless use of cat award?  ;-)

Quote:>this works fine
>--
>Mark

--
Berlin                    Juergen Russ                           Germany