06-19-2010
thanks for that....I'm going to have a think about it down the pub!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hai Friends
Can anyone provide me a grep command to print x to y lines in a file.
For example:
grep command to display 15th line to 21st
Thanks in advance
Collins (4 Replies)
Discussion started by: collins
4 Replies
2. Shell Programming and Scripting
In what cases the following command ignores lines in input file:
$ grep -c "^" inputfile (1 Reply)
Discussion started by: amicon007
1 Replies
3. Shell Programming and Scripting
Hi
I have file like this:
Sun Jan 24 03:00:00 2010: *** Weekly Process - get_ens_files.pl START ***
Sun Jan 24 03:00:00 2010: *** ***
Sun Jan 24 03:00:00 2010: ***************************************************
Sun Jan 24 03:00:11 2010: ... (2 Replies)
Discussion started by: koti_rama
2 Replies
4. Shell Programming and Scripting
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)
Discussion started by: balaeswari
6 Replies
5. Shell Programming and Scripting
As part of my never-ending nagios automation project I am need to implement the following run line into a loop;
-bash-3.00$ grep ${feed} /usr/local/feed/service/clients/*/bin/* | awk -F/ '{print "To restart: /"$2"/"$3"/"$4"/"$5"/"$6"/"$7"/"$8"/"$9}'
Which prints to screen;
To restart:... (3 Replies)
Discussion started by: JayC89
3 Replies
6. Shell Programming and Scripting
Hi all,
I have one query,in my script,i give one input like sectionname that enclose with and that will search in specific file in specific directory.If found ,then it's search next section and begin of section ,sometext means different sectionname.
p1
p2
p3
p4
p5
p6
I want to... (2 Replies)
Discussion started by: suryanarayan
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt
grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt
But I am not sure, whether, all result stored in .txt file in case of multi-line result.
Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies
8. Shell Programming and Scripting
list ALL file entries with a last modification date of September 20. using grep (1 Reply)
Discussion started by: polineni
1 Replies
9. Shell Programming and Scripting
Hi,
What does this line do
grep -E 'ORA-' $LIN_TOP/log/status.log > /dev/null 2>&1
Does this check in status.log and in std out, stderr also.?
Thanks (3 Replies)
Discussion started by: nag_sathi
3 Replies
10. UNIX for Dummies Questions & Answers
Hi Experts,
I need some suggestion on file grep.
I am trying to find multiple pattern with the file grep as below
grep "2013" trace.log | grep -f pattern.cfg -i > $LOG
if ; then
mail -s "Exception" "sample@abc.com" < $LOG
fi
Is it possible to obtain what pattern I got in the... (5 Replies)
Discussion started by: senthil.ak
5 Replies
LEARN ABOUT SUNOS
eqnchar
eqnchar(5) Standards, Environments, and Macros eqnchar(5)
NAME
eqnchar - special character definitions for eqn
SYNOPSIS
eqn /usr/share/lib/pub/eqnchar filename | troff options
neqn /usr/share/lib/pub/eqnchar filename | troff options
DESCRIPTION
The eqnchar command contains nroff(1) and troff(1) character definitions for constructing characters that are not available on the Graphic
Systems typesetter. These definitions are primarily intended for use with eqn(1) and neqn(1). It contains definitions for the following
characters:
To view the special characters, see the online man page on docs.sun.com or a print copy.
A table that shows the nroff and troff character definitions used by eqn
FILES
/usr/share/lib/pub/eqnchar
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdoc |
+-----------------------------+-----------------------------+
SEE ALSO
eqn(1), nroff(1), troff(1), attributes(5)
SunOS 5.10 12 Jul 2002 eqnchar(5)