[mplspm]: does anyone know of a perl script to convert .cshrc file to.profile format?

eric eric at urbanrage.com
Wed Jan 2 16:00:29 CST 2002


Roleigh Martin wrote:
> 
> Hi,
> 
> does anyone know of a perl script to convert .cshrc file to .profile
> format?
> 
> the tricky part of writing one for one's self is the path line - for
> instance in
> .cshrc it is:
> 
> set path=(. /bin /usr/bin /etc /usr/ucb /usr/bin/X11 /usr/local/bin
> ${HOME}/bin ${HOME}/util /usr/c/CenterLine/bin
> /home/sybase/OCS-12_0/bin ${OEC_DCE_TOOLS}/bin ${U
> HC_DCE_TOOLS}/bin  /sybooks/ibm/bin
> )
> 
> in .profile it is:
> 
> PATH=.:/usr/bin:/usr/sbin:${OEC_DCE_TOOLS}/bin:${UHC_DCE_TOOLS}/bin:~/.:/etc:/usr/bin/X11:/usr/local/bin:~/bin:~/exe:~/wdce/qstar/bin:~/wdce/qstar/bin/lib:/home/acro
> bat3/bin:/usr/lpp/db2_05_00/bin:/usr/lpp/db2_05_00/lib
> 
> If anyone can point me to a script I'd be highly appreciative.

Don't have a script, but as a security note.  If you are going to have .
in your path put it last

Eric


--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list