Hi,
Can anyone give me a script to convert csh to bash? or any key points which can help me to do so as i am new to it.
No such tool exists as far as I know.
can you tell me the key differences which are to be looked to convert it?
Hi.
Assuming you have bash installed:
#! /bin/bash
#
# cshtobash - convert csh aliases, environment variables, and variables to
# bash equivalents
#
# usage: cshtobash [filename]
#
# If filename is given, that file is sourced. Note that csh always
# sources .cshrc. To recreate your csh login environment, run
# `cshtobash ~/.login'.
#
# Inspired by (and some borrowed from) a similar program distributed with
# zsh-3.0.
#
# Chet Ramey
...
excerpt from /usr/share/doc/bash/examples/misc/cshtobash
My system context:
OS, ker|rel, machine: Linux, 2.6.26-2-amd64, x86_64
Distribution : Debian GNU/Linux 5.0.8 (lenny)
Chet's script might be a start for you.
Good luck ... cheers, drl