Hi
I need a small help
Cshell% more abc.txt
********
Cshell% cat abc.txt | cut -c1-3
***
Cshell%set test3=`cat abc.txt | cut -c1-3`
Cshell%echo $test3
a.txt b.txt.................
.....
It displays all the file in the current directory.
I want *** to be displayed.
Can any one of... (1 Reply)
Hi,
I am stuck assigning a value to a variable.
I am trying to assign a value to a variable but getting error....
IP_ADDR=grep 'I.P. Address' /install/cfgdist/`uname -n`.cfg | cut -d : -f 2| cut -d . -f 1-3| sed s/" "//g
I am using this script to grep first three octets of an IP address... (4 Replies)
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number:... (1 Reply)
Factorial calculation
Example output:
Please enter a non-negative number: 3
3! = 3 X 2 X 1
= 6
Please enter a non-negative number: 10
10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800
Please enter a non-negative number: -1
... (1 Reply)
hi all
i have a shell script for connecting in sybase env what i need is i have around 10 servers , i need to connect to all servers and retrive the database inforamtion in the servers and display them
any one of u have it request to share it asap !
"QUERY TO Connect to all servers... (1 Reply)
Hello everybody!
I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see:
If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
Hi,
I have a requirement as below which needs to be done viz UNIX shell script
(1) I have to connect to an Oracle database
(2) Exexute "SELECT field_status from table 1" query on one of the tables.
(3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Hi Admins,
I was trying to list the failed logins as part of my daily checklist.
Here is my script
for i in `who -s /etc/security/failedlogins|tail -100|grep "$dt"|awk '{print $1" "$6}'`
do
a=`echo $i|wc -l`
if
then
echo $i
else
echo "There are no failed logins"
fi
done
but... (3 Replies)
Hi,
I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database.
For instance:
USER CITY
--------- ----------
A CITY_A
B CITY_B
C ... (2 Replies)
Please solve the below:
Use a pipeline and command substitution to set the length of a line in emp.lst to a variable. (1 Reply)
Discussion started by: ravisingh
1 Replies
LEARN ABOUT OPENSOLARIS
test-speech
test-speech(1) User Commands test-speech(1)NAME
test-speech - a test application provided by gnome-speech
DESCRIPTION
test-speech is a simple test application provided by gnome-speech. It is used to verify the driver for a speech engine, e.g., freetts-syn-
thesis-driver, is funcioning properly, in order to make sure users can activate and interact with the gnome-speech driver successfully.
GNOME Speech aims to be a general interface to various text-to-speech engines for the GNOME desktop. It allows the simple speaking of text,
as well as control over various speech parameters such as speech pitch, rate, and volume.
FILES
The following files are used by this application:
/usr/bin/test-speech a test application provided by gnome-speech
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-a11y-speech |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO libgnomespeech(3), attributes(5)NOTES
gnome-speech is written by Marc Mulcahy and Michael Meeks.
SunOS 5.11 3 Dec 2006 test-speech(1)