Sponsored Content
Full Discussion: Append Header in CSV file
Top Forums Shell Programming and Scripting Append Header in CSV file Post 302361114 by Tuxidow on Monday 12th of October 2009 09:18:54 AM
Old 10-12-2009
Plz post the error you are getting... and also please make sure to keep more clarity while posting...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I add a header to a csv file

I have a csv file which has no header. the file has 15 fields and needs to go out with a header of 8 fields. The header content needs to have some variables and some fixed that i have set up: variable header fields OUTFILE_YEAR=`date '+%y'` DATE=`date '+%d%m%y'` TIME=`date '+%H:%M:%S'`... (6 Replies)
Discussion started by: Pablo_beezo
6 Replies

2. Shell Programming and Scripting

I want to append data to same .csv file.

I have a script which has to be scheduled to run 3 times a day. My script picks the required fields from logfile and stores the data in a.csv file. Sample data. my logfile contain: 0097A,0374D,100903,1519,00000606191 0097A,C88RA,100903,0724,00000606105 So the output of first execution... (3 Replies)
Discussion started by: shrima.pratima
3 Replies

3. Shell Programming and Scripting

Add header to a .csv file

Hi, I am trying to add a header record to all the .csv files in a directory. I am using the below sed commnad sed -i '1 i \abc,sam,xyz,tip,pep,rip' xyz.csv but this is not adding the header and I am not getting any error,pls tell me if any thing is wrong in the code. Thanks, Shruthi (2 Replies)
Discussion started by: shruthidwh
2 Replies

4. UNIX for Dummies Questions & Answers

Merge all csv files in one folder considering only 1 header row and ignoring header of all others

Friends, I need help with the following in UNIX. Merge all csv files in one folder considering only 1 header row and ignoring header of all other files. FYI - All files are in same format and contains same headers. Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies

5. UNIX for Dummies Questions & Answers

append column and row header to a file in awk script.

Hi! Is there a way to append column and row header to a file in awk script. For example if I have Jane F 39 manager Carlos M 40 system administrator Sam F 20 programmer and I want it to be # name gend age occup 1 Jane F 39 manager 2 Carlos M ... (4 Replies)
Discussion started by: FUTURE_EINSTEIN
4 Replies

6. Shell Programming and Scripting

[Solved] Append an header to a tab delimited file

Dear All, I would like to find an automatic way to add a given code which belong to a class at the end of the column , for example this is my input file: 0610009O20Rik V$VMYB_01 310 (+) 1 0.971 v-Myb V$EVI1_04 782 (-) 0.763 0.834 Evi-1 V$ELK1_02 1966 (-) 1 0.984 Elk-1... (4 Replies)
Discussion started by: paolo.kunder
4 Replies

7. Shell Programming and Scripting

Is there a way to append both at header and footer of a file

currently I've a file Insert into CD_CARD_TYPE (CODE, DESCRIPTION, LAST_UPDATE_BY, LAST_UPDATE_DATE) Values ('024', '024', 2, sysdate); Insert into CD_CARD_TYPE (CODE, DESCRIPTION, LAST_UPDATE_BY, LAST_UPDATE_DATE) Values ('032', '032', 2, sysdate); ........ is it... (3 Replies)
Discussion started by: jediwannabe
3 Replies

8. Shell Programming and Scripting

How to get sqlplus column header once in csv file?

Hi All, Could anyoone please let me know how do I get sqlplus column header once in csv file Scripts are below: cat concreq.sh #!/bin/bash . $HOME/.profile while ; do sqlplus apps/pwd <<-EOF set lines 100 pages 100 col "USER_CONCURRENT_QUEUE_NAME" format a40; --set termout off... (5 Replies)
Discussion started by: a1_win
5 Replies

9. UNIX for Dummies Questions & Answers

Creating a csv file with header in UNIX

I have a flat file that contains dynamic list of variables like a=1 b=2 c=3 . .. z=26 I need to convert the above into a csv file having the format below: a,b,c,..,z 1,2,3,..,26 Please note, I do not want a comma separating the last variable. I tried to refer the post... (4 Replies)
Discussion started by: vkumbhakarna
4 Replies

10. Shell Programming and Scripting

Script to validate header in a csv file

Hi All; I am struggling to write a script that validates file header. Header file would be like below with TAB separated TRX # TYPE REF # Source Piece Code Destination Piece Code every time I need to check the txt file if the header was same as above fields if validation success... (6 Replies)
Discussion started by: heye18
6 Replies
evm.auth(4)						     Kernel Interfaces Manual						       evm.auth(4)

NAME
evm.auth - EVM authorization file SYNOPSIS
event_rights { class event_class post rights_list access rights_list } service_rights { service service_name execute rights_list } DESCRIPTION
Authorization is control of the right to post, subscribe to, or retrieve an EVM event, or to execute services defined in the EVM daemon configuration file. The evm.auth file is a text file that controls event authorization. Any portion of a line from an unquoted number sign (#) to the end of line is a comment. Blank lines are ignored. The following authorization controls are recognized: The rights specified apply to event posting and subscription. Class of events to which these rights apply. An event_class is a string of one or more components that match the same set of components in an Event Name. It is used to identify a family of events for purposes such as authorization. The more spe- cific classes (those with more components) override the rights indicated by the less specific (more generic) classes. Users specified by the rights_list are allowed or denied the right to post events of this event_class. Users specified by the rights_list are allowed or denied the right to subscribe to or retrieve from the log, events of this event_class. A list of users or groups who have or are denied the specified right for this event or service class. Entries are separated by commas. A rights_list has the format: [+|-][user | group=groupname] In the previous rights_list, user is the login name of any user, and groupname is any group. The keyword group may be abbreviated to grp. A leading plus character (+) signifies that event or service rights are granted. A leading minus character (-) signifies that rights are explicitly denied. User root has implicit posting and access rights to all events, and execute rights to all ser- vices, unless they are explicitly denied. The first explicit entry for a user in a rights list takes precedence over any other explicit or group entries for that user. If the user is not explicitly listed, but is a member of a group which denies access, access is denied even if the user is also a mem- ber of a group for which access is granted. A plus or minus sign with no associated name grants or denies rights to all users. The rights_list must be enclosed in double quotes if it contains spaces. The rights specified apply to services performed by the daemon for a requesting client. The service to which these rights apply. The service_name is the name of a service defined in the evmdaemon.conf file. User-defined services are not currently supported. Users specified by the rights_list are allowed or denied the right to request operation of this service. The keywords described may be entered in a case-insensitive manner. The allowable strings and the minimum number of characters is shown in the following table. A minimum of zero (0) indicates that all characters are required. ------------------------- Keyword Minimum ------------------------- access 0 class 0 event_rights 7 execute 4 post 0 service 4 service_rights 9 ------------------------- NOTES
If you add an event_rights entry to the authorization file, you must make sure there is a corresponding base event template in the template file library. The base template must have a name whose components exactly match the corresponding components in the authorization file's class value. The template name can have fewer components than are present in the class, but it cannot have more. For example, if an event_rights group has a class value of myco.myprod.payroll, and an event template with the name myco.myprod has been registered in an EVM template file, the template will be regarded as the base template for the class. Each time the daemon loads or reloads its configuration, it writes a warning message in its error file if no base template is registered for a particular event_rights entry. Refer to the evmtemplate(4) reference page for information about registering event templates. If you are concerned with allowing your file to be used on other systems that support EVM in the future, you should use the built-in macro @SYS_VP@ in place of the first two components (sys.unix) of the name of any system event. This will make it unnecessary to change the file if the other system uses a different event name prefix. EXAMPLES
This example illustrates an entry in the authorization file with the following privileges: Only root may post events that have myco.myapp as the first two components of the event name. Events in this class may be accessed by root or by any user who is a member of the tech group. event_rights { class myco.myapp post +root access "+root, +group=tech" } FILES
Location of the EVM authorization file. SEE ALSO
Commands: evmd(8) Files: evmdaemon.conf(4), evmtemplate(4) Event Management: EVM(5) delim off evm.auth(4)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy