Hi
I have to do the following.I have to format a file test.t
The contents are
# Header 1231
xyz
asdf
asdapsdcsd
//string1 = "pqrs"
//string1 = "abcd"; //info
//string1 = "*pqrs"; //add
string1 = "#123"; //sub
//string1 = "#1234567890"
data = check(string1)
//string1 = "#1234567890"... (12 Replies)
Hello,
I am working on one script which is giving output as a pipe "|" separated
abcd | efgh | 20090745
abcdefgh | efg | 20090622
Can any one please help me i want it to be formatted as pipe will be aligned, or the output looks like a table. (2 Replies)
How to add the filename to end of each line with | as seperator, except first and last line of the file(s) in directories(with diff tree structure) using shell script?. And also how to replace a list of strings with another set of strings, which is present in a file?.
Kindly help out on... (1 Reply)
Dear all,
I have a database with thousands of files with the structure of name is:
Filename_hour_year.abc
Filename_hour_year_1.abc
..............
So what I need is how to write a script that all file with contain the character "_1" will copy to "_2"
For example: file name:... (7 Replies)
I have a file with contents something similar to as below :
SVCNAME,12m-1a,1a-2a,2a-3a,3a-4a,5a-6a,6a-7a,7a-8a,8a-9a,9a-10a,10a-11a,11a-12n,12n-1p,13p-14p,14p-15p,15p-16p,16p-17p,17p-18p,18p-19p,19p-20p,20p-21p,21p-22p,22p-23p,11p-12m, TOTALS... (5 Replies)
Hi All,
Need an urgent help to convert a unix file in to a particular format:
**source file:**
1111111
2d2f2h2
3dfgsd3
...........
1111111 <-- repeats in every nth line. remaining all lines will be different
123ss41
432ff45
...........
1111111 <-- repetition
qwe1234
123weq3... (1 Reply)
Hi Team,
We have a requirement where we need to format input file using shell script by meeting the below conditions.
1. 1. Ignore first 549 characters of that file.
2. 2. After that we need to make a file of 100 characters per line, repeat it until the 3rd ... (16 Replies)
hi,
when we assign a variable inside a for loop or while loop in a shell script, does it loses its value after comming out of the loop. i am facing this issue.
can anyone help me?? (8 Replies)
EvmEventFormat(3) Library Functions Manual EvmEventFormat(3)NAME
EvmEventFormat(), EvmEventFormatFromTemplate(), EvmVarFormat() - format events for display
SYNOPSIS
Library
EVM Support Library
Parameters
buffer A pointer to a character string to receive the formatted event data. The stored string is null-terminated, even if trun-
cated, unless the length operand is zero(0).
length The maximum length (number of characters) of the output string. If the formatted event is longer than length, the output is
truncated.
event The event to be formatted.
show_template The primary template for formatting the output.
var_name The name of a variable data item of the event whose value is to be formatted.
translate A Boolean value indicating whether I18N (internationalization) translation is to be attempted on the variable data item
(var_name). If the translate operand is translation is attempted. In addition, the following conditions must be met:
o The variable is of type string and includes an I18N (internationalization) message identifier
o The event contains I18N (internationalization) catalog information.
DESCRIPTION
Information contained in an event must be formatted into a readable format. The software which posts the event (event poster) supplies
formatting information through the event's format data item. The routines described here explain the event formatting capabilities.
The routine combines the supplied event's format data item with any data items or variables specified in the event's format item that are
available in the event. returns a formatted version of the event in buffer.
If the event contains I18N message catalog information, and the catalog is available in the user's locale, the format string is retrieved
from the message catalog if possible. If no translation is possible, the format string from the event is used.
If the event does not contain format information, produces a generic display of the event's name and any variables.
The routine also formats the supplied event. uses the supplied show_template string as its primary formatting template. Literal charac-
ters in show_template are transferred to the buffer unchanged.
Any token of the form or is replaced by the value of the corresponding data item from the supplied event, if it is present. item_name is
the name of the item stored in the event. If width is supplied, the value occupies a minimum of width character positions. width is an
integer number specifying the size of the value stored in item_name. The item_name is the name of a standard event data item. The special
string is replaced by the results of applying to the event.
Refer to evmshow(1) and EvmEvent(5) for more information about formatting events for display.
retrieves a variable called var_name from the supplied event, and returns a formatted version of its value in buffer.
If translate is I18N translation is applied as appropriate.
Notes
Floating point values are formatted using the format specifier.
RETURN VALUE
The operation completed without error.
One of the arguments to the function is invalid.
A value in a structure member is invalid.
An operation failed because an attempt to acquire heap memory failed.
ERRORS
The value of is not set.
SEE ALSO
Commands
evmshow(1), locale(1).
Routines
EvmEventDump(3), printf(3S), setlocale(3C).
Event Management
EVM(5).
EVM Events
EvmEvent(5).
EvmEventFormat(3)