11-07-2008
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to figure out how I can get an equivalent output to a text file such as if I use
gunzip -l filename
in that gunzip will output the previous file size and the compressed size and the ratio...
is there a way to achieve this with compress and zip?
i am very new at shell... (3 Replies)
Discussion started by: nortypig
3 Replies
2. Shell Programming and Scripting
hey......
i hav the follwing scripts needs to run parallel, so i made it as follows,
$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &
then once all these above got completed successfully i have to run
... (3 Replies)
Discussion started by: manas_ranjan
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
i have a following folder call 'zz'. This 'zz' folder is found in the following directories.
I would like to delete the zz in the following directories
/aa/zz
/aa/bb/cc/zz
/aa/bb/cc/dd/zz
/aa/bb/cc/dd/ee/zz
and keep the zz folder in the following directories
/WW/zz
... (1 Reply)
Discussion started by: new2ss
1 Replies
4. Programming
How to achieve SERIALIZATION in Unix , C, C++
Write Objects directly to disk and read back ? (1 Reply)
Discussion started by: Sivaswami
1 Replies
5. Shell Programming and Scripting
hi to all,
i have the input(text file) like the below...
Header
1,2,3
4,5,6
7,8,9
Footer
i need a output(text file) like the below...
Header,1,2,3,Footer
Header,4,5,6,Footer
Header,7,8,9,Footer
please help me to find out? (2 Replies)
Discussion started by: aaha_naga
2 Replies
6. Shell Programming and Scripting
Hi,
Here is my requirement.
Currently, there is a function which gets called in a for loop 2 times.
doCopy() {
cp /src/a*.jar /target/
cp /src/b*.jar /target/
cp /src/c*.jar /target
}
Since it is called sequentially from the for loop, I was asked to make parellel copy to... (7 Replies)
Discussion started by: kgsrinivas
7 Replies
7. Shell Programming and Scripting
Hi all
I have the following which is part of a larger interactive script for adding virtual hosts to Apache's configuration (it was built for non-technical administrators). I'm curious as to whether there is a simpler way of achieving the same thing. All it does is look into the... (3 Replies)
Discussion started by: mlott
3 Replies
8. Shell Programming and Scripting
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies
9. UNIX for Advanced & Expert Users
in AIX ,HP Unix and in SUN solaris,
how to find the logs by date and time, I mean , Logs which have been generated or updated
most recently , which might be present in folders and sub folders, I need to get the list of these Logs
along with location path.
Example:
========
folder... (3 Replies)
Discussion started by: sidharthmellam
3 Replies
10. Shell Programming and Scripting
Is there any i can achieve entity escaping, URL escaping & UTF-8 encoded for the xml generated through shell script?
#! /bin/bash
echo "<path>" >> file.xml
for x in `ls filename*`
do
echo -e "\t<dir>" >> file.xml
echo -e "\t\t<file>$x</file>" >> file.xml... (0 Replies)
Discussion started by: vel4ever
0 Replies
LEARN ABOUT DEBIAN
tm::resourceable
TM::ResourceAble(3pm) User Contributed Perl Documentation TM::ResourceAble(3pm)
NAME
TM::ResourceAble - Topic Maps, abstract trait for resource-backed Topic Maps
SYNOPSIS
package MyNiftyMap;
use TM;
use base qw(TM);
use Class::Trait ('TM::ResourceAble');
1;
my $tm = new MyNiftyMap;
$tm->url ('http://nirvana/');
warn $tm->mtime;
# or at runtime even:
use TM;
Class::Trait->apply ('TM', qw(TM::ResourceAble));
my $tm = new TM;
warn $tm->mtime;
DESCRIPTION
This traits adds methods to provide the role resource to a map. That allows a map to be associated with a resource which is addressed by a
URL (actually a URI for that matter).
Predefined URIs
The following resources, actually their URIs are predefined:
"io:stdin"
Symbolizes the UNIX STDIN file descriptor. The resource is all text content coming from this file.
"io:stdout"
Symbolizes the UNIX STDOUT file descriptor.
"null:"
Symbolizes a resource which never delivers any content and which can consume any content silently (like "/dev/null" under UNIX).
Predefined URI Methods
"inline"
An inlined resource is a resource which contains all content as part of the URI. Currently the TM content is to be written in AsTMa=.
Example:
inlined:donald (duck)
INTERFACE
Methods
url $url = $tm->url
$tm->url ($url)
Once an object of this class is instantiated it keeps the URL of the resource to which it is associated. With this method you can
retrieve and set that. No special further action is taken otherwise.
mtime
$time = $tm->mtime
This function returns the UNIX time when the resource has been modified last. 0 is returned if the result cannot be determined. All
methods from LWP are supported.
Special resources are treated as follows:
"null:"
always has mtime 0
"io:stdin"
always has an mtime 1 second in the future. The idea is that STDIN always has new content.
"io:stdout"
always has mtime 0. The idea is that STDOUT never changes by itself.
SEE ALSO
TM
AUTHOR INFORMATION
Copyright 200[67], Robert Barta <drrho@cpan.org>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://www.perl.com/perl/misc/Artistic.html
perl v5.10.1 2010-08-04 TM::ResourceAble(3pm)