hi,
i have file with 4 columns, the first column contains 10 numbers. i want to replace t the numbers (u can say i want to use cryptography). i want to replace 1 with 4, 2 with 5, 3 with 9.....
how can i achieve this in unix. :confused: (1 Reply)
Hi
i have a variable whose value contains '(single quote)
i want to replace single quote with two single quotes
ex-
i want to replace
abc's second center
with abc''s second center.
Plz help me.
thanks (2 Replies)
my file creation timestamp looks like this:
Nov 4 15:44:34 EST 2009
i need to translate into 091104
my way is to awk on $1, $2, $5, but i don't know how to tranlate Nov to 11
---------- Post updated at 03:01 PM ---------- Previous update was at 11:07 AM ----------
i resolved my post... (0 Replies)
Hi, all of you!!!
I have this code and I won to build-in some more code.
I know this is a lot of code.
if ; then
if ; then
SYSROOT="$1"
S_SCRIPT="cd $1 ; ./etc/rc.sysinit 2>&1 &"
fi
else
... (22 Replies)
Hi,
I'm using code below to assign title for Putty Window to show user@hostname+curr directory.
Trying to read this "write only" language, can anybody help me to go thru this string, too many thing in it I can't expaing
Tx
T
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:... (1 Reply)
Hi,
I wrote a script to convert a given word from English to French.
But I am not able to figure out what I am missing here.
I am not able to get the translated word
Below is my script:
French=/root/dict/entofr.txt
for i in $*
do
word="echo $word $i"
done
while:
do
cat <<... (1 Reply)
Dear all,
I would like to count the no;of word "INFORMATION" in a file called alt.lst and output to a unix variable INFORMATION.so to do this I wrote the below code
INFORMATION=echo 'INFORMATION' | tr -cs 'A-Za-z' '\n' < /app/tisq005/01/home/tisq005b/scripts/alt.lst | grep -c "INFORMATION"... (2 Replies)
sed -n "2,10p" lfile | egrep error | egrep -vc memory
sed -n "2,10p" lfile | egrep error | egrep -v memory
sed -n "2,10p" lfile | egrep error | egrep -c memory
sed -n "2,10p" lfile | egrep error | egrep memory
above are four separate commands. i want to combine the grep in each... (7 Replies)
Discussion started by: SkySmart
7 Replies
LEARN ABOUT SUSE
set::object::weak
Set::Object::Weak(3) User Contributed Perl Documentation Set::Object::Weak(3)NAME
Set::Object::Weak - Sets without the referant reference increment
SYNOPSIS
use Set::Object::Weak qw(weak_set);
my $set = Set::Object::Weak->new( 0, "", {}, [], $object );
# or
my $set = weak_set( 0, "", {}, [], $object );
print $set->size; # 2 - the scalars aren't objects
DESCRIPTION
Sets, but weak. See "weaken" in Set::Object.
Note that the "set" in "Set::Object::Weak" returns weak sets. This is intentional, so that you can make all the sets in scope weak just by
changing "use Set::Object" to "use Set::Object::Weak".
CONSTRUCTORS
new This class method is exactly the same as "Set::Object->new", except that it returns a weak set.
weak_set( ... )
This optionally exported function is a shortcut for saying "Set::Object::Weak->new(...)".
set( ... )
This method is exported so that if you see:
use Set::Object qw(set);
You can turn it into using weak sets lexically with:
use Set::Object::Weak qw(set);
Set::Object 1.19 had a bug in this method that meant that it would not add the passed members into it.
SEE ALSO
Set::Object
CREDITS
Perl magic by Sam Vilain, <samv@cpan.org>
Idea from nothingmuch.
perl v5.12.1 2008-10-12 Set::Object::Weak(3)