07-08-2010
String manipulation
Hi,
I have the string like this ". Start : 06:53:11 - MON JUL 05, 2010"
I need to print the part "06:53:11 - MON JUL 05, 2010"
How i can do this?
Thanks,
Lenova
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Suppose I have the following text in a file.
ORA-00942: table or view does not exist
ORA-01555: snapshot too old: rollback segment number string with name "string"
too small
Is there any way I can list all the text that starts only with 'ORA-'?
Or there any grep command that can... (7 Replies)
Discussion started by: kakashi_jet
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file with rows of text like so :
E100005568374098100000015667
D100005568374032000000112682
H100005228374060800000002430
I need to grab just the last digits(bolded) of each line without the proceeding text/numbers.
Thanks (5 Replies)
Discussion started by: james6
5 Replies
3. Shell Programming and Scripting
Hi,
i am just gettin exposed to UNIX.
Could anyone of u help me out with dis problem..?
i have a variable 'act' which has the value as follows,
echo $act gives -0- -0- -----0---- 2008-06-04 -0- -0-
echo "$act" | awk '{print ($act)}'
gives,
-0-
-0-
-----0----
2008-06-04
-0-
-0-
I... (2 Replies)
Discussion started by: jerrynimrod
2 Replies
4. Shell Programming and Scripting
i have a file that contains a pattern like this:
ajay 1234 newyork available
kumar 2345 denver
singh 2345 newyork
ajay 3456 denver
kumar 3456 newyork
singh 3456 delhi available
ajay 4567 miami
kumar 4567 miami
singh 4567 delhi
i want to search for each line... (5 Replies)
Discussion started by: ajay41aj
5 Replies
5. Shell Programming and Scripting
First of all I am VERY new to this so bare with me and try and explain everything even if it seems simple.
Basically I want to read a line of text from a html file. See if the line of text has a certain string in it. copy an unknown number of characters (the last 4 characters wiil be ".jpg" the... (1 Reply)
Discussion started by: c3lica
1 Replies
6. Shell Programming and Scripting
Hi,
I have a file in the following format
123|shanwer|15DEC2010|bgbh|okok|16JAN3000|okok|
I want the following to be in following format
123|shanwer|12\15\2010|bgbh|okok|01\16\3000|okok|
SED/PERL/AWK Gurus
could you please help me with this?
Thanks
Shankar (8 Replies)
Discussion started by: Shan2210
8 Replies
7. Shell Programming and Scripting
Hi All,
Pls help me out on the below,
05 LAMSZ201-ZM-MEMO2-DATE02-5 PIC X(10).
05 LAMSZ201-ZM-MEMO2-AMT02-5 PIC S9(13)V99.
05 LAMSZ201-ZM-MEMO2-TYPE02-6 PIC XXX.
05 LAMSZ201-ZM-MEMO2-DATE02-6 PIC X(10).
05 ... (2 Replies)
Discussion started by: baskivs
2 Replies
8. Shell Programming and Scripting
Hello
Could you help with small script:
How to split string X1 into 3 string
String X1 can have 1 or many strings
X1='A1:B1:C1:D1:A2:B2:C2:D2:A3:B3:C3:D3'
This is output which I want to have:
Z1='A1:B1:C1:D1'
Z2='A2:B2:C2:D2'
Z3='A3:B3:C3:D3' (5 Replies)
Discussion started by: vikus
5 Replies
9. Shell Programming and Scripting
i have something like this...
echo "teCertificateId" | awk -F'Id' '{ print $1 }' | awk -F'te' '{ print $2 }'
Certifica
the awk should remove 'te' only if it is present at the start of the string.. anywhere else it should ignore it.
expected output is
Certificate (7 Replies)
Discussion started by: vivek d r
7 Replies
10. Shell Programming and Scripting
I'm making a little game in Perl, and I am trying to remove the first instance of a character in an arbitrary string. For example, if the string is
"cupcakes"and the user enters another string that contains letters from "cupcake" e.g:
"sake"the original string will now look like this (below)... (3 Replies)
Discussion started by: whyte_rhyno
3 Replies
os_mon(7) Erlang Application Definition os_mon(7)
NAME
os_mon - OS Monitoring Application
DESCRIPTION
The operating system monitor, OS_Mon, provides the following services:
* cpu_sup CPU load and utilization supervision (Unix)
* disksup Disk supervision(Unix, Windows)
* memsup Memory supervision (Unix, Windows, VxWorks)
* os_sup Interface to OS system messages (Solaris, Windows)
To simplify usage of OS_Mon on distributed Erlang systems, it is not considered an error trying to use a service at a node where it is not
available (either because OS_Mon is not running, or because the service is not available for that OS, or because the service is not
started). Instead, a warning message is issued via error_logger and a dummy value is returned, which one is specified in the man pages for
the respective services.
CONFIGURATION
When OS_Mon is started, by default all services available for the OS, except os_sup , are automatically started. This configuration can be
changed using the following application configuration parameters:
start_cpu_sup = bool() :
Specifies if cpu_sup should be started. Defaults to true .
start_disksup = bool() :
Specifies if disksup should be started. Defaults to true .
start_memsup = bool() :
Specifies if memsup should be started. Defaults to true .
start_os_sup = bool() :
Specifies if os_sup should be started. Defaults to false .
Configuration parameters effecting the different OS_Mon services are described in the respective man pages.
See config(5) for information about how to change the value of configuration parameters.
SNMP MIBS
The following MIBs are defined in OS_Mon:
OTP-OS-MON-MIB :
This MIB contains objects for instrumentation of disk, memory and CPU usage of the nodes in the system.
The MIB is stored in the mibs directory. It is defined in SNMPv2 SMI syntax. An SNMPv1 version of the MIB is delivered in the mibs/v1
directory.
The compiled MIB is located under priv/mibs , and the generated .hrl file under the include directory. To compile a MIB that IMPORTS the
OTP-OS-MON-MIB , give the option {il, ["os_mon/priv/mibs"]} to the MIB compiler.
If the MIB should be used in a system, it should be loaded into an agent with a call to os_mon_mib:load(Agent) , where Agent is the pid or
registered name of an SNMP agent. Use os_mon_mib:unload(Agent) to unload the MIB. The implementation of this MIB uses Mnesia to store a
cache with data needed, which implicates that Mnesia must be up and running. The MIB also use functions defined for the OTP-MIB , thus that
MIB must be loaded as well.
SEE ALSO
cpu_sup(3erl) , disksup(3erl) , memsup(3erl) , os_sup(3erl) , nteventlog(3erl) , snmp(3erl) .
Ericsson AB os_mon 2.2.5 os_mon(7)