05-18-2008
bash --version or echo $BASH_VERSION while running the bash shell.
ksh will apparently display its version number if you type ctrl-v while in the shell. I was unable to quickly find any other mechanism for identifying its version.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I check what kornshell version I am using at runtime from within a kornshell script? (3 Replies)
Discussion started by: qanda
3 Replies
2. Shell Programming and Scripting
Hi
I need a shell command for finding out Firefox browser verion on linux machine.
Waiting for your reply.
Thanks and Regards,
Kammy. (0 Replies)
Discussion started by: kjannu
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How to write a script for finding out firefox version in our linux machine?
Could you please share the same? I am using Red Hat Linux machine.
Thanks,
Kammy (2 Replies)
Discussion started by: kjannu
2 Replies
4. Shell Programming and Scripting
Hi,
I have some version number's present in a text file like
version.txt contains
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
(may be more that this) can we write any specific shell command to find it out the latest version (For this it is 1.0.4 ) ? I am a new user of shell command and cud... (6 Replies)
Discussion started by: bhaskar_m
6 Replies
5. HP-UX
Hi,
I need to find tcsh shell version info on several boxes.
I made a script and running on boxes through SSH.
This is what i am doing :
echo /bin/tcsh -c 'echo $version' | ssh "box name"
but i dont see anything.
if i run /bin/tcsh -c 'echo $version' on ocal machine i see the... (2 Replies)
Discussion started by: kailash19
2 Replies
6. Shell Programming and Scripting
Version Control Through the Shell Script
Hi Guys,
Apologize for the big request, please take some time and read it completely... This is Very important for me, and ur help is Very much Appriciated.
I want to maintain the Version control to all my scripts running in Production server, I am... (6 Replies)
Discussion started by: Anji
6 Replies
7. Shell Programming and Scripting
Hi,
I need to compare two versions values and report only true or false depending on their difference result.
like -
echo $(echo "1.8 >= 2.0" | bc)
0
echo $(echo "2.0 >= 2.0" | bc)
1
but my task is to compare values like -
echo $(echo "1.9.1 >= 2.0" | bc)
(standard_in) 1: syntax... (3 Replies)
Discussion started by: abhitanshu
3 Replies
8. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
9. Shell Programming and Scripting
Hello all I am writing a shell script for unix, and I am trying to get it to ask me if instances are stopped, and then if the version of java running is correct, if not I want it to ask me to switch to the other bit version. I am newish to shell and not clear on how to to input prompts for yes/no... (3 Replies)
Discussion started by: bigbenn
3 Replies
10. Shell Programming and Scripting
We are using AIX version 7100-03-05-1524
Please provide shell script version (bash or ksh) of below perl code,since we need to have line breaks in huge XML files
#!/usr/bin/perl
#
# Purpose: Read an XML file and indent it for ease of reading
# Author: RedGrittyBrick 2011.
# Licence:... (11 Replies)
Discussion started by: vishwanath001
11 Replies
shells(4) File Formats shells(4)
NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh,
/bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/pfcsh, /usr/bin/pfksh,
/usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh. Note that /etc/shells overrides the default list.
Invalid shells in /etc/shells may cause unexpected behavior (such as being unable to log in by way of ftp(1)).
FILES
/etc/shells lists shells on system
SEE ALSO
vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)
SunOS 5.10 4 Jun 2001 shells(4)