Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating a file in variable length format Post 302187961 by quine on Tuesday 22nd of April 2008 10:59:37 AM
Old 04-22-2008
I don't understand the question...

When you download a file, it is in what ever length/format it is... You don't have to create it in a particular format....

If you are CREATING a file for someone else to download, that is a different story, but again I don't understand the problem.... Do you mean variable length records? Of what do they consist? Any file can have variable length records. Usually, you have to work to make them FIXED length (older mainframe applications require these), not the other way around...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a fixed length output from a variable length input

Is there a command that sets a variable length? I have a input of a variable length field but my output for that field needs to be set to 32 char. Is there such a command? I am on a sun box running ksh Thanks (2 Replies)
Discussion started by: r1500
2 Replies

2. UNIX for Dummies Questions & Answers

Creating new file with new record length

Hi there, using the command below > cat file1 | tr "\001" " " > tmp2 how can I alter the record length of tmp2 to fix length of 350 bytes ? Thanks a lot! (7 Replies)
Discussion started by: mrjunsy
7 Replies

3. UNIX for Dummies Questions & Answers

Convert a tab delimited/variable length file to fixed length file

Hi, all. I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file: 10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783 19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657 And this is the expected... (2 Replies)
Discussion started by: Everton_Silveir
2 Replies

4. Shell Programming and Scripting

Parsing a variable length file

Hi I am new to shell scripting. I need to parse a file which contains the header and detail records and split into n of file based on dept ID, for ex. INPUT FILE: DEPT ID: 1 EMPNAME: XYZ EMPAddress: XYZZZ DEPT ID: 2 EMPNAME: ABC EMPAddress: ABCD DEPT ID: 1 EMPNAME: PQR EMPAddress:... (6 Replies)
Discussion started by: singhald
6 Replies

5. Shell Programming and Scripting

Make variable length record a fixed length

Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types: (H)eader Records (D)etail Records (T)railer Records The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies

6. Shell Programming and Scripting

Split variable length and variable format CSV file

Dear all, I have basic knowledge of Unix script and her I am trying to process variable length and variable format CSV file. The file length will depend on the numbers of Earnings/Deductions/Direct Deposits. And The format will depend on whether it is Earnings/Deductions or Direct Deposits... (2 Replies)
Discussion started by: chechun
2 Replies

7. Shell Programming and Scripting

changing a variable length text to a fixed length

Hi, Can anyone help with a effective solution ? I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces. The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies

8. Shell Programming and Scripting

Help for reformatting text file and creating new format

Hi all, I have an input file like 1,date,company,, 1,date,comapny,, 2,000,,,567,ACT,00,,,,KKG,M1,D45,,67J,+4500000000 2,000,,,567,ACT,00,,,,KKG,M6,D49,,56J,+6000 2,000,,,567,ACT,00,,7,,KKG,M3,D58,,68h,-70000 2,000,,,567,ACT,00,,,,KKG,M9,D95,,34m,0.00 3,total what i require is 1.I... (2 Replies)
Discussion started by: selvankj
2 Replies

9. Shell Programming and Scripting

Need help in creating a file in required format form another existing file

I have a text file with contents like this: a,b,c, d~e,f,g,h~i,j ,k,l,m~n,o,p,q~ I need to convert this file into this format unix shell script commands: a,b,c,d~ e,f,g,h~ i,j,k,l,m~ n,o,p,q~ as you may have noticed, I need to retain the ~ signs at the end. Any help is greatly... (3 Replies)
Discussion started by: harsha1238
3 Replies

10. Shell Programming and Scripting

Convert variable length record to fixed length

Hi Team, I have an issue to split the file which is having special chracter(German Char) using awk command. I have a different length records in a file. I am separating the files based on the length using awk command. The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
XtVaGetSubvalues()														XtVaGetSubvalues()

Name
  XtVaGetSubvalues - retrieve the current values of subpart resources, using varargs argument style.

Synopsis
  void XtVaGetSubvalues(base, resources, num_resources, ..., NULL)
	   XtPointer base;
	   XtResourceList resources;
	   Cardinal num_resources;

Inputs
  base	    Specifies the base address of the subpart data structure for which the resources should be retrieved.

  resources Specifies the subpart resource list.

  num_resources
	    Specifies the number of resources in the resource list.

  ..., NULL A  NULL-terminated	variable-length  list  of  resource  names and the addresses at which the values of those resources are to be
	    stored.

Availability
  Release 4 and later.

Description
  XtVaGetSubvalues() obtains the values of the resources named in the variable-length argument list  (and  described  in  the  resource  list
  resources)  from  the subpart structure pointed to by base, and stores those values at the addresses specified in the variable length argu-
  ment list.  Note that the special symbol XtVaTypedArg is not supported by XtVaGetSubvalues().  If XtVaTypedArg is specified in the list,  a
  warning message is issued and the entry is then ignored.

  XtVaGetSubvalues()  is  identical  to XtGetSubvalues() except that the args array of resource names and values and the num_args argument of
  that function are replaced with a NULL-terminated variable-length argument list.

  See XtGetSubvalues() for more information on this function.  See XtVaSetValues() for more information  on  using  variable-length  argument
  lists to specify resources.  See XtGetApplicationResources() for information on how to declare an XtResourceList.

See Also
  XtGetApplicationResources(1), XtGetSubvalues(1), XtVaSetValues(1).

Xt - Resource Management													XtVaGetSubvalues()
All times are GMT -4. The time now is 04:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy