I have a small question... Since i am new to Unix ksh scripting i am having this problem of understanding...
Well the thing is that i just want a part of a line for example
I just want the value of Actual Total ie 8187
My code.. i mean till where i wrote looks up for line Data Set line and currently printing whole line... now i just want the value of Actual Total only ie 8187 for the line
Here {3}= Data Set
Can any one say me what change i have to do in my grep so it will just get me the value of actual total
Work problem:
Need to set up a job to periodically check that the number of entries in the mail queue.
I'm able to do the following: mailq | grep "Mail Queue"
Which returns: Mail Queue (7 requests)
Unfortunately I'm not sure how I select between `(` and `requests`?
... (2 Replies)
Hello,
I just wanted to know if there is a way in UNIX to select a line value from a list of words. there is no line number before each word, hence could not use grep. (4 Replies)
Hi,
I am able to do this by brute force but I am just curious if there is a better way of handling things. Basically the scenario is something like this:
There are a number of files in a directory:
rib.20071224.1759.gz 24-Dec-2007 17:59 132K
rib.20071224.1959.gz 24-Dec-2007... (7 Replies)
i store the output of ls in a variable FL
$FL=`ls`
$echo $FL
f1.txt f2.txt f3.txt f4.txt f5.txt script.sh script.sh~ test.txt
now if i want to retrive the sub-string "f1.txt" from $FL we were taught that this is what i have to do
$set $FL
$echo $1
f1.txt
and echo $2 would give... (1 Reply)
Hi Guys,
Following is my Input file.
Time : Wed Nov 16 02:32:09 2011
Type : INFO
User : dsadm
Message :
Oracle_Connector_2: The connector generated the following TRUNCATE TABLE statement at runtime: TRUNCATE TABLE CANADA_INDUSTRY_OBJECTIVES.
Time : Wed Nov 16... (4 Replies)
Hi Team,
I am searching through log file using
grep -i '<search_key>' <file_name>|awk '{print $18}'
example outputs are
I would like to select the data between and no other as I am getting some junk characters sometimes which chaging the o/p display format.
Kindly assist.... (8 Replies)
Hi,
I have been working on a punch of codes and I got to a problem I hope to get help on. I have some files that I want to work with but the folder has other files in it. For example: The folder contains these files:
path to files: /home/distribution/
ls:
b.10; b.11; b.12; b.20; b.222;... (2 Replies)
Hi,
Can anyone help me that, How to see the table fields in Oracle database through shell script(ksh).
I have tried with the following:
sqlplus -s $user/$passwd@$sid << SQL >> session.log
select * from Testtab.sql
I'm not able to see anything..
Thanks (4 Replies)
I have a file with contents like
host1.domain.com:9090,host2.domain.com:9090,host3.domain.com:9090
I am looking for such an operation so that, the output should be
host1.domain.com:9090
host2.domain.com:9090
host3.domain.com:9090
And also, if the number of entries are more, the... (1 Reply)
Discussion started by: anil510
1 Replies
LEARN ABOUT MINIX
suspend
suspend(1) User Commands suspend(1)NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)SunOS 5.10 15 Apr 1994 suspend(1)