08-25-2002
Finding how done IT
HellOooO,
How I can find how delete a drictory in the system.If there's 2 root one of them outside the country but we have WAN so he can access the network from outside >>>> we are using same account so how I can know who done it I want to proof that.
Regards
10 More Discussions You Might Find Interesting
1. AIX
Hello all,
I am trying to figure out what command I can use in AIX in order to find out the driver level for a Fibre Channel adapter. Generically I am able to use "lscfg" to get the details but I am unable to read the output correctly.
Can you help?
Many thanks,
-- output --
lscfg... (2 Replies)
Discussion started by: monotone
2 Replies
2. Shell Programming and Scripting
I have two files. They are prety much the same, except a few lines. I would like to get the differences between the two file, but only those differences and nothing more.
"diff" and "sdiff" cannot seem to do it. "sdiff -s" gets close, but I still get "less than" or "greater than" signs in the... (2 Replies)
Discussion started by: dombi
2 Replies
3. Shell Programming and Scripting
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
4. Shell Programming and Scripting
Hi All ,
i am in progress of creating a script which should find a file a.txt , in a particular root directory . This should actually Search all the Sub directories and copy those files and FTP it to a server . Need a Input how to Proceed on this
Thankyou guys (6 Replies)
Discussion started by: raghav1982
6 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have the below content in file:
<xmlfile> ows_Body="Hi" ows_Title="Title" ows_Author="krishna" </xmlfile>
I wanted to remove ows_Body content from the file.
I am using the below code
sed -e 's/ows_Body.*ows/ows/g'
Giving output: (9 Replies)
Discussion started by: mahish20
9 Replies
6. Shell Programming and Scripting
I am currently creating a script to find filenames that are listed once in an input file (find non duplicates). I then want to report those single files in another file. Here is the function that I have so far:
function dups_filenames
{
file2=""
file1=""
file=""
dn=""
ch=""
pn=""
... (6 Replies)
Discussion started by: chipblah84
6 Replies
7. Shell Programming and Scripting
Hi,
I am trying to find two files in a if condition to do a task
Please find below the script that i have built
while read line
do
filename = $line
if && ]; then
cp /tmp/$filename.dat /sftp/$filename.dat
else
cat $filename "no trg file associated" >>... (4 Replies)
Discussion started by: ramkiran77
4 Replies
8. Shell Programming and Scripting
I want to erase some php code between a <? and a ?> in HTML containing a keyword, the problem is it finds the last > and wipes out everything before it
how do i specify for it to stop searching after the first >?
perl -i -p0e 's/<\?php.*keyword.*\?>//s'
there's many lines of php code... (2 Replies)
Discussion started by: vanessafan99
2 Replies
9. Shell Programming and Scripting
Hi,
I need to find the field separator for the given files.
Ex-
abc.txt is "|" delimited file , when I give command the output should be "|" and that shud store it in another variable.
This is same with csv files or any other delmited file. If I give the filename it shud give the... (1 Reply)
Discussion started by: Prashanth B
1 Replies
10. Shell Programming and Scripting
Basically, I need to find average of numbers which are given like:
sh average file1 file (in files can be more than one number)
->10
sh average 5 7
->6
sh average /users/file
->5
echo 5 7 | sh average
6
So basically i wrote my code but it gives me error... I am pretty sure it has to work... (10 Replies)
Discussion started by: Manu1234567
10 Replies
LEARN ABOUT DEBIAN
tree::redblack
RedBlack(3pm) User Contributed Perl Documentation RedBlack(3pm)
NAME
Tree::RedBlack - Perl implementation of Red/Black tree, a type of balanced tree.
SYNOPSIS
use Tree::RedBlack;
my $t = new Tree::RedBlack;
$t->insert(3, 'cat');
$t->insert(4, 'dog');
my $v = $t->find(4);
my $min = $t->min;
my $max = $t->max;
$t->delete(3);
$t->print;
DESCRIPTION
This is a perl implementation of the Red/Black tree algorithm found in the book "Algorithms", by Cormen, Leiserson & Rivest (more commonly
known as "CLR" or "The White Book"). A Red/Black tree is a binary tree which remains "balanced"- that is, the longest length from root to
a node is at most one more than the shortest such length. It is fairly efficient; no operation takes more than O(lg(n)) time.
A Tree::RedBlack object supports the following methods:
new ()
Creates a new RedBlack tree object.
root ()
Returns the root node of the tree. Note that this will either be undef if no nodes have been added to the tree, or a
Tree::RedBlack::Node object. See the Tree::RedBlack::Node manual page for details on the Node object.
cmp (&)
Use this method to set a comparator subroutine. The tree defaults to lexical comparisons. This subroutine should be just like a
comparator subroutine to sort, except that it doesn't do the $a, $b trick; the two elements to compare will just be the first two items
on the stack.
insert ($;$)
Adds a new node to the tree. The first argument is the key of the node, the second is its value. If a node with that key already
exists, its value is replaced with the given value and the old value is returned. Otherwise, undef is returned.
delete ($)
The argument should be either a node object to delete or the key of a node object to delete. WARNING!!! THIS STILL HAS BUGS!!!
find ($)
Searches the tree to find the node with the given key. Returns the value of that node, or undef if a node with that key isn't found.
Note, in particular, that you can't tell the difference between finding a node with value undef and not finding a node at all. If you
want to determine if a node with a given key exists, use the node method, below.
node ($)
Searches the tree to find the node with the given key. Returns that node object if it is found, undef otherwise. The node object is a
Tree::RedBlack::Node object.
min ()
Returns the node with the minimal key.
max ()
Returns the node with the maximal key.
AUTHOR
Benjamin Holzman <bholzman@earthlink.net>
SEE ALSO
Tree::RedBlack::Node
perl v5.10.0 2008-07-31 RedBlack(3pm)