I have about 300 files which has the function getDBBackend().
How to write a program to change the empty function from the old format to the new format?
Old empty function format are either:
function getDBBackend()
{
// Not available
} // getDBBackend
or:
function... (0 Replies)
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
I have a file which has following contents
usmtnz-dinfsi19
62
61
18400
18800
99.7
usmtnz-dinfsi19
62
61
18400
18800
99.7
i want the o/p to be like
date (7 Replies)
Hello,
Can you tell me how can I change this format by awk
Input
0.2057422D-01
0.2463722D-01
-0.1068047D-02
Output
0.02057422
0.02463722
-0.001068047
Thanks
wan (8 Replies)
I have a text file sample.txt which contains some details like
Order
9001
Item Code
34
Quantity
4
Entry Date
2009-04-23
Ordered by
Ram
Order
9002
Item Code
34
Quantity
3 (1 Reply)
I have a script that reaches out to several systems and pulls back infomation in serveral files. I would like to take the infomation returned and reformat it so I can export it to excel.
Below is current output:
File1:item1:abc=1
File1:item2:efg
File2:item1:ab=1
File2:item2:efg... (3 Replies)
First padd the string with spaces and then store in file (e.g result) with""
Example:
i/p:
name="abc"
echo "$name">>result
Blank space..=12
Required o/p of Result file:
"abc " # "Value 12 blank space"
How to perform using scripting??:confused:
Please use code tags,... (1 Reply)
I wish to convert the following in shell. Help me SED or AWK
ID= 12345,23456,67859 , 90225 , 67583
I can extract the right hand side of "=" using cut command "cut -d "=" -f2
after extracting that right side i would need like this
'12345','23456','67859','90225','67583'
1 ) the... (2 Replies)
I am trying to use either awk or sed to make names like
J. A. Smith and J.A. Martin Smith become
JA Smith and JA Martin SmithThe code should concatenate abbreviated letters that have a dot after them.
I have only been able to do this:
echo $name | sed 's/\.\ //g'But that concatenates the... (3 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
LEARN ABOUT SUSE
pdl::state
State(3) User Contributed Perl Documentation State(3)NAME
State - A package to keep track of plotting commands
SYNOPSIS
use PDL::Graphics::State;
DESCRIPTION
This is a very simple, at present almost trivial, package to keep track of the current set of plotting commands.
USAGE
You create a new object by calling the "new" operator
$state = PDL::Graphics::State->new();
Then for each new command you call "add" on this object so that for a call to "line" of the form
line $x, $y, $opt;
the call to "add" would be like
$state->add(&line, 'line', [$x, $y], $opt);
which is stored internally as:
[&line, 'line', [$x, $y], $opt]
The state can later be extracted using "get" which returns the state object which is an array of anonymous arrays like the one above where
the first object is a reference to the function, the second an anomymous array of arguments to the function and finally an anonymous hash
with options to the command.
If you know the order in which you inserted commands they can be removed by calling "remove" with the number in the stack. No further
interaction is implmented except "clear" which clears the stack and "copy" which returns a "deep" copy of the state.
AUTHOR
Jarle Brinchmann (jarle@astro.ox.ac.uk) after some prodding by Karl Glazebrook.
All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For
details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be
included in the file.
perl v5.12.1 2009-10-17 State(3)