Sponsored Content
Top Forums Shell Programming and Scripting Split long record into csv file Post 302311008 by wvdeijk on Monday 27th of April 2009 03:14:32 PM
Old 04-27-2009
Thanks. I do know all the field widths. I'll try vgersh99's method and seee how it goes. Unfortunately, we don't have gawk installed, but that just means I'll have to create the function as well.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to delete a record from a csv file

Hi Guys I have downloaded a table from oracle database in .csv format. it has many fields as Title, First Name, Last Name etc. I have to download distinct titles from database and now i have to check all those titles from data of First Name one by one. and then i have to delete matched record.... (1 Reply)
Discussion started by: Rajeev Agrawal
1 Replies

2. UNIX for Dummies Questions & Answers

how to get a file name & record count of csv file

HI , I am new to shell scripting , I have a requirement that I send a file for data quality ( original.csv) & i will be getting 4 files daily into a particular directory in return with cleansed data . the files may be clean.csv, unclean.csv , ... (2 Replies)
Discussion started by: sirik
2 Replies

3. Shell Programming and Scripting

How to split a file record

-Hi, I have a problem with parcing/spliting a file record into two parts and assigning the split parts to two viriables. The record is as follows: ftrn facc ttrd feed xref fsdb fcp ruldb csdb omom fordr ftxn fodb fsdc texc oxox reng ttrn ttxn fqdb ... (5 Replies)
Discussion started by: aoussenko
5 Replies

4. Shell Programming and Scripting

Record count of a csv file

Hello Gurus, We have a requirement to count the valid number of records in a comma delimited file with double quotes. The catch here is..few records have a new line carriage within the double quotes,,say for ex:we have a file called accounts the record count is 4827..but the actual valid count... (5 Replies)
Discussion started by: ajaykk
5 Replies

5. Shell Programming and Scripting

csv file - adding total to a trailer record

Hi, I have a script which creates and modifies a csv file. I have managed to do everything I need to do apart from 1 thing. I need to append a trailer record to the file. I need this line to hold the total of an entire column of the csv file (skipping the 1st line which is a header). Can... (2 Replies)
Discussion started by: mcclunyboy
2 Replies

6. Shell Programming and Scripting

Split a large file in n records and skip a particular record

Hello All, I have a large file, more than 50,000 lines, and I want to split it in even 5000 records. Which I can do using sed '1d;$d;' <filename> | awk 'NR%5000==1{x="F"++i;}{print > x}'Now I need to add one more condition that is not to break the file at 5000th record if the 5000th record... (20 Replies)
Discussion started by: ibmtech
20 Replies

7. Shell Programming and Scripting

Output first unique record in csv file

Hi, I have to output a new csv file from an input csv file with first unique value in the first column. input csv file color product id status green 102 pass yellow 201 hold yellow 202 keep green 101 ok green 103 hold yellow 203 ... (5 Replies)
Discussion started by: Chris LAU
5 Replies

8. Shell Programming and Scripting

Long file record

riends I have the following problem: test.txt I have a file that has the following contents: is a fixed-length file to the end of the number 12 has spaces, so that it is fixed length 123456789 123456789 123456789 12 This code shows me the length of each record, but in... (2 Replies)
Discussion started by: tricampeon81
2 Replies

9. Shell Programming and Scripting

EBCDIC File Split Based On Record Key

I was wondering if anyone could explain to me how to split a variable length EBCDIC file into seperate files based on the record key. I have the COBOL layout, and so I need to split the file into 13 different EBCDIC files so that I can run each one through a C++ converter I have, and get the... (11 Replies)
Discussion started by: hanshot1stx
11 Replies

10. UNIX for Advanced & Expert Users

How to split large file with different record delimiter?

Hi, I have received a file which is 20 GB. We would like to split the file into 4 equal parts and process it to avoid memory issues. If the record delimiter is unix new line, I could use split command either with option l or b. The problem is that the line terminator is |##| How to use... (5 Replies)
Discussion started by: Ravi.K
5 Replies
display_accelerator()													     display_accelerator()

Name
  display_accelerator - Core method to display current accelerators.

Synopsis
  typedef void (*XtStringProc)(Widget, String);
	 Widget w;
	 String string;

Inputs
  w	    Specifies the source widget that supplied the accelerators.

  string    Provides the string representation of the accelerators that were installed.

Description
  The  Core  display_accelerator() method is registered on the display_accelerator field of the Core class part structure, and is called when
  the application installs a widget's accelerators with XtInstallAccelerators() or XtInstallAllAccelerators().

  The argument w is the widget instance that has had its accelerators installed, and string is a string representation of the widget's accel-
  erator  table.   Some  widget classes will want to display themselves differently when accelerators are installed so that the user is aware
  that they are available.  (Menu buttons that display their keyboard equivalents are a good example.)

  The method is passed a string version of the current accelerator table, in canonical form.  This form may differ from the  original  source
  of the accelerator table itself.

  The  display_accelerator()  method  is not chained.  A widget class can inherit its superclass's display_accelerator() method by specifying
  XtInheritDisplayAccelerator in its Core display_accelerator field.  A widget that does not wish to display any accelerators  may  set  this
  field to NULL.

Usage
  The  translation table syntax is not particularly easy for a user to read or particularly easy for a widget to convert into a simpler form,
  so a widget class may prefer to define a resource which is the string that should be displayed when the accelerator is installed.  That way
  the application programmer can specify both the accelerator and the representation of the accelerator that the user will see.

  None of the Intrinsics or Xaw widget classes define a display_accelerator() method.

See Also
  XtInstallAccelerators(1).

Xt - Intrinsics Methods 												     display_accelerator()
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy