Hi , i need help with formatting a file i am generating which is to be used in mainframe app so the file length has to be 80 for each rows. The file that m able to generate looks like this (consists of two rows only)
I want the file to be like:
(the lngth of 3rd fld - 1006756 is 30, so i have 23 space after the number, samewise the length of 4th fld is 30, so i have 24 space after the word "Active". After the word "T", i have 11 more space which is used to be a filler so that we get total 80 as the line size.
How can i ensure this using sed, i have access to shell script.
Thanks in advance for your help.
Last edited by Ygor; 08-15-2008 at 01:22 AM..
Reason: Added code tags
Hi I have a file which contains data (list of data) and I want to put a number with bracket 1) 2) 3) etc at the beginning of every successive line
I can do it with SED and I can also do it using the nl route but am looking for a different method.
I'm guessing I would need some sort of loop... (3 Replies)
I have a file with follwing content
----------------------------------
SCHEDULE XXXXXXXXX#JOBCOUNT
ON EVERYDAY
AT 0000
PRIORITY 50
SCHEDULE XXXXXXXXX#ABCDEFGH
ON EVERYDAY
AT 0001
PRIORITY 29
SCHEDULE... (5 Replies)
Hello Experts,
I have a timestamp(6) column in a .csv data file , format of the data is as below:-
ETCT,P,Elec, Inc.,abc,11/5/2010 4:16:09.000000 PM,Y,Y,Y
I want the timestamp column to be properly formatted like
11/05/2010 04:16:09.000000 PM
Currently the "0" is missing with... (3 Replies)
Hi,
I have 3 kind of files that contains date data needed to be masked. The file is like this:
File 1 (all contents in 1 line):
input:DTM+7:201103281411:203'LOC+175+SGSIN:139:6+TERMINATOR......'DTM+132:201103281413:203'LOC....
output:... (4 Replies)
Hi,
Am having a file. I checked that file format by the following command
file filename
Output is
filename: data
So the file is data format file
Am trying to view that file so i have used some commands like cat,more so on but it showing the contents like compressed form(full of Symbols). How... (4 Replies)
hi all,
i am new to unix forum,i want do some large data format work. pls help me to format the file.
i have attched data file to be formated in that two set of line item is there . first set header & second set header to be come in to single header item same as like all the data also.
... (2 Replies)
Hello All,
We are receiving UTF-16 formatted file and when i vi the file in Linux OS i am seeing some weird characters, is this because in my .bashrc profile the language variable has been set to LC_ALL=en_US.UTF-8 and hence the reason i am not able to read the UTF-16 formatted file properly? or... (2 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)
I have to sort below output in text file in unix bash
20170308
DA,I,113
20170308
PM,I,123
20170308
DA,U,22
20170308
PM,U,123
20170309
DA,I,11
20170309
PM,I,23
20170309
DA,U,123
20170309
PM,U,233 (8 Replies)
I m looking for help here!!!
Can we filter the below log data into CSV format ?
1 2 3 4 5 6 7 8
timestamp INFO <text > - Some text (1 Reply)
Discussion started by: MohSalNiz
1 Replies
LEARN ABOUT LINUX
coseventchanneladmin
CosEventChannelAdmin(3erl) Erlang Module Definition CosEventChannelAdmin(3erl)NAME
CosEventChannelAdmin - The CosEventChannelAdmin defines a set if event service interfaces that enables decoupled asynchronous communica-
tion between objects and implements generic (untyped) version of the OMG COSS standard event service.
DESCRIPTION
The event service defines two roles for objects: the supplier role and the consumer role. Suppliers supply event data to the event channel
and consumers receive event data from the channel. Suppliers do not need to know the identity of the consumers, and vice versa. Consumers
and suppliers are connected to the event channel via proxies, which are managed by ConsumerAdmin and SupplierAdmin objects.
There are four general models of communication. These are:
* The canonical push model. It allows the suppliers of events to initiate the transfer of event data to consumers. Event channels play
the role of Notifier . Active suppliers use event channel to push data to passive consumers registered with the event channel.
* The canonical pull model. It allows consumers to request events from suppliers. Event channels play the role of Procure since they pro-
cure events on behalf of consumers. Active consumers can explicitly pull data from passive suppliers via the event channels.
* The hybrid push/pull model. It allows consumers request events queued at a channel by suppliers. Event channels play the role of Queue
. Active consumers explicitly pull data deposited by active suppliers via the event channels.
* The hybrid pull/push model. It allows the channel to pull events from suppliers and push them to consumers. Event channels play the
role of Intelligent agent . Active event channels can pull data from passive suppliers to push it to passive consumers.
To get access to all definitions, e.g., exceptions, include necessary hrl files by using:
-include_lib("cosEvent/include/*.hrl").
There are seven different interfaces supported in the service:
* ProxyPushConsumer
* ProxyPullSupplier
* ProxyPullConsumer
* ProxyPushSupplier
* ConsumerAdmin
* SupplierAdmin
* EventChannel
Ericsson AB cosEvent 2.1.10 CosEventChannelAdmin(3erl)