How can I convert c shell to bash shell

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
garda

Re: How can I convert c shell to bash shell

Post by garda »

Put them in a script and add #!/bin/csh -f in the header. Like so:

Code: Select all

#!/bin/csh -f

setenv DOVIS /export/home/arditya/dovis/

setenv MGL_ROOT "$DOVIS/MGLTools"
setenv MGL_ARCHOSV "$MGL_ROOT/i86Linux2"

unset PYTHONHOME
setenv PYTHONHOME "$MGL_ROOT/share:$MGL_ARCHOSV"
setenv PYTHONPATH "$MGL_ROOT/MGLToolsPckgs"

set path = ( $DOVIS/bin $DOVIS/scripts \
$MGL_ROOT/i86Linux2/bin \
$MGL_ROOT/MGLToolsPckgs/AutoDockTools/Utilities24 \
$path)
Make sure CSH is already installed, otherwise it won't work.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Beginner Questions”