10-05-2010
It works wonders! Thanks so much
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I have a file say x.txt containing
xxx
123
bla
bla
...
you
xxx
dfk
dbf
...
me
xxx
...
...
keeps on..
i need to search for pattern in the line starting xxx in the file. If pattern matched, I need to fetch all the lines till i find next xxx. (17 Replies)
Discussion started by: prsshini
17 Replies
2. Shell Programming and Scripting
Hi,
I am new to ksh scripting and I have a problem.
I have a file in which I have to search for a particular pattern say 'a' then from that line I need to search for another pattern say 'b' in the previous lines and thne print the file from pattern 'b' till the end of file.
For eg:
... (2 Replies)
Discussion started by: umaislearning
2 Replies
3. Shell Programming and Scripting
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
<?xml version="1.0" encoding="UTF-8"?>
<NJCustomer>
<Header>
<MessageIdentifier>Y504173382</MessageIdentifier>
... (13 Replies)
Discussion started by: oky
13 Replies
4. Shell Programming and Scripting
i need to search for a pattern from a big file and print everything expect the next 6 lines from where the pattern match was made. (8 Replies)
Discussion started by: chidori
8 Replies
5. Shell Programming and Scripting
Hi all
I need your help to get a high-performance solution.
I am working on a extensive script to automate file restores using the bprestore tool on a Solaris 5.10 server (bash 3.00). I will only paste the needed parts of the script to avoid any confusion.
To use the script the user has to... (2 Replies)
Discussion started by: Anonym
2 Replies
6. Shell Programming and Scripting
Hi,
I've written a script to search for an Oracle ORA- error on a log file, print that line and the .trc file associated with it as well as the dateline of when I assumed the error occured. In most it is the first dateline previous to the error.
Unfortunately, this is not a fool proof script.... (2 Replies)
Discussion started by: newbie_01
2 Replies
7. Shell Programming and Scripting
Hi Experts
I have small query where I request the into a single file
Suppose:
File1: {Unique entries}
AA
BB
CC
DD
FileB:
AA, 123
AA, 234
AA, 2345
CC, 123
CC, 5678
DD,123
BB, 7890 (5 Replies)
Discussion started by: navkanwal
5 Replies
8. Shell Programming and Scripting
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies
9. Shell Programming and Scripting
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Discussion started by: Klasform
9 Replies
LEARN ABOUT DEBIAN
chainsaw
KNIFE(8) System Manager's Manual KNIFE(8)
NAME
knife, axe, cutter, chainsaw - tools to improve network performance via SNIP
SYNOPSIS
knife is used to control the network via Sysadmin Network Interrupt Protocol [SNIP].
DESCRIPTION
Experience has shown that suitable application of these tools on the network can lead to improved network performance, as busy segments of
useless traffic can be isolated from the important stuff (and the rest of the world, for that matter). However, care must be taken, other-
wise lusers will be complaining about "network downtime".
knife vs LART
While knife can be used as a replacement for LART, the reverse is not generally true; while blunt trauma works wonders on lusers, it tends
to be ineffective on cables. Also, note that using knife or one of it's associates as a LART will probably lead to higher level assault
charges than one would get with a standard LART.
chainsaw, the power SNIP tool
chainsaw is a version of knife that makes quick work of almost any problem. It also has a correspondingly higher potential for causing
unintentional damage. Handle with care.
FILES
In its normal application to cables, knife uses no files. If applied to a disk, many files may be affected; see mkfs(8).
SEE ALSO
lart(8)
BUGS
You may be required to fix things eventually.
RESTRICTIONS
Bosses and the legal system may take a dim view of overenthusiastic application of these tools.
AUTHOR
While the origin of the first knife remains a mystery, this man page was written by Kurt Hockenbury <kurt@something.com>. He disclaims
responsibility for any actions inspired by this man page.
HISTORY
SNIP was first described on alt.sysadmin.recovery by J.D. Falk <jdfalk@cais.cais.com> as a followup to a post by <martin@angela.ctrl-
c.liu.se>.
KNIFE(8)