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 SUNOS
exacct::object::item
Exacct::Object::Item(3PERL) Perl Library Functions Exacct::Object::Item(3PERL)NAME
Exacct::Object::Item - exacct item manipulation
SYNOPSIS
use Sun::Solaris::Exacct::Object;
my $ea_item = Sun::Solaris::Exacct::Object::Item->new(
&EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$);
DESCRIPTION
This module is used for manipulating libexacct(3LIB) data Items. A libexacct Item is represented as an opaque reference blessed into the
Sun::Solaris::Exacct::Object::Item class, which is a subclass of the Sun::Solaris::Exacct::Object class. The underlying libexacct data
types are mapped onto Perl types as follows:
libexacct type Perl internal type
EXT_UINT8 IV (integer)
EXT_UINT16 IV (integer)
EXT_UINT32 IV (integer)
EXT_UINT64 IV (integer)
EXT_DOUBLE NV (double)
EXT_STRING PV (string)
EXT_RAW PV (string)
EXT_EXACCT_OBJECT Sun::Solaris::Exacct::Object
subclass
Constants
None.
Functions
None.
Class methods
Class methods include those inherited from the Sun::Solaris::Exacct::Object base class, plus the following:
new($catalog, $value)
This method creates and returns a new Sun::Solaris::Exacct::Object::Item. The catalog tag can be either an integer or a
Sun::Solaris::Exacct::Catalog. This catalog tag controls the conversion of the Perl value to the corresponding Perl exacct data type as
described in the table above. If the catalog tag has a type field of EXT_EXACCT_OBJECT, the value must be a reference to either an Item
or a Group object and the passed object is recursively copied and stored inside the new Item. Because the returned Item is constant, it
is impossible, for example, to create an Item representing CPU seconds and subsequently modify its value or change its catalog value.
This behavior is intended to prevent mismatches between the catalog tag and the data value.
Object methods
Object methods are those inherited from the Sun::Solaris::Exacct::Object.
Exports
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpl5u |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO Exacct(3PERL), Exacct::Catalog(3PERL), Exacct::File(3PERL), Exacct::Object(3PERL), Exacct::Object::Group(3PERL), libexacct(3LIB),
attributes(5)SunOS 5.10 1 Dec 2002 Exacct::Object::Item(3PERL)