Sponsored Content
Full Discussion: appending files
Top Forums UNIX for Dummies Questions & Answers appending files Post 31274 by edog on Tuesday 5th of November 2002 09:56:49 AM
Old 11-05-2002
by end of line I mean the file layout is like this:

A,B,200210,S, A

if the file date was oct 9 i want the master file record to look like this:

A,B,200210,S, A,Nov 9

I good to go creating the master file its just a matter of putting the date at the end for that file I'm having problems with, some honcho wants this so he can open it in excel

I can even put the date on the individual files first before combining them but I'm stuck there

thanks
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

appending strings in the files

I have some files created by a process in UNIX. I wanted to do some file processing: 1. I want to append a string "EOF" as the first word on the last line of all the files except the last file. 2.Similarly, I want to append "BOF" string as the first word to all the files except the first... (2 Replies)
Discussion started by: vijaylak
2 Replies

2. UNIX for Dummies Questions & Answers

Appending the two files

hi, I want to append to two files into a third file without new line like this: file 1: I am learning the unix file 2: Unix is very intersting When I am trying cat file1 file2 >> file3 I am getting: I am learning the unix Unix is very interesting But I want that to be in... (3 Replies)
Discussion started by: harish409
3 Replies

3. UNIX for Dummies Questions & Answers

appending variable number of files

In a particular path of a server I have number of files.The files are generated every date with a date_mth stap on this.There are different files for different clients. For example in /data1 path i have X_0416_Score Y_0416_Score Z_0417_Score X_0417_Score A_0417_Score If i will run the... (1 Reply)
Discussion started by: dr46014
1 Replies

4. Shell Programming and Scripting

Appending a string to all files in a directory

Hi, I will have to append a common string at the beginning of each and every line to all files in the same directory. How do i do this? (1 Reply)
Discussion started by: ragavhere
1 Replies

5. Filesystems, Disks and Memory

Appending files to a tape drive

I've starting playing with a tape drive for the first time. Its a new one, an IBM Ultrium LTO 4. After initially copying a file to the tape with tar cvf /dev/st0 /root/dummy, all subsequent files appended take an increasing amount of time with tar rvf /dev/st0 /root/dummyX. Is it normal for each... (2 Replies)
Discussion started by: jeriryan87
2 Replies

6. Shell Programming and Scripting

Appending all files that are in a directory

Hi, This might be a question that has an easy solution but im new to unix. I have a project where I have to append files that are in a directory and then read those files out. can anyone help me this this problem??? thanks in advance, TDS (1 Reply)
Discussion started by: TDS
1 Replies

7. Shell Programming and Scripting

Appending two files vertically

Hi Need ur help for the below question. I have two files File-1 & File-2. File-1(This is a fixed file i.e. the content of this file is not going to change over a period of time) ------ a b c d e File-2 (This is a file which changes daily but the record count remains the same)... (1 Reply)
Discussion started by: 46019
1 Replies

8. UNIX for Dummies Questions & Answers

Appending two text files

Hi, i am using unix server and bash shell.. i have two csv files... i have file 1 as below... arun bvb ssx ccc and file 2 as below manas friu dfgg cat (3 Replies)
Discussion started by: arunmanas
3 Replies

9. UNIX for Dummies Questions & Answers

Appending multiple files

I am trying to append multiple files in a directory cat /a/file1.txt /a/file2.txt /a/file3.txt /a/file4.txt > /a/file.txt Except file2 every other file is appending. I interchanged file names and ran the command. Whatever file repeating in the second position is missing in output... (6 Replies)
Discussion started by: eskay
6 Replies
XLITO(1)						      General Commands Manual							  XLITO(1)

NAME
xlito (XLoadImageTrailingOptions) - Append/Delete/Show a Trailing Option string in a file. SYNOPSIS
xlito [option] [string] files ... DESCRIPTION
xlito (XLoadImageTrailingOptions) is a utility that provides a file format independent way of marking image files with the appropriate options to display correctly. It does this by appending to a file, a string specified by the user. The string is marked with some magic numbers so that it can be extracted by a program that knows what to look for. Since almost all image files have some sort of image dimen- sion information in the file, the programs that load or manipulate these files generally do not look beyond the point at which they have read the complete image, so trailing information is safely be hidden. If appending this information causes trouble with other utilities, it can simply be deleted. Appropriate version of xloadimage (ie. xli 1.00) will recognise these trailing options at the end of the image files, and will treat the embedded string as if it were a sequence of command line Image Options. Any Global Options will be ignored, and unlike command line image Options, Trailing Options are never propagated to other images. Old versions of xloadimage (3.01 or less) can be made forward compatible by using the -x option to pull the trailing options out of the image files, and put them on the command line where xloadimage can see them. OPTIONS
The default behavior is to display the trailing option strings (if any) of the files on the argument line. The following options change the behavior of xlito: -c option_string file_name ... This adds or changes the embedded string to option_string. The string will have to be quoted if it is composed of more than one word. -d file_name ... Delete any embedded trailing option strings in the given files. -x file_name ... Process the files and create a command line string suitable for use by xloadimage. Arguments starting with - are echoed, arguments not starting with - are treated as files and any trailing options strings are echoed followed by the file name. The xloadimage option -name is treated correctly. EXAMPLES
If fred.gif has the wrong aspect ratio, then it might need viewing with the xloadimage options: xloadimage -yzoom 130 fred.gif This option can then be appended to the file by: xlito -c "-yzoom 130" fred.gif and from then on some new versions of xloadimage will get the appropriate options from the image file itself. Old versions of xloadimage can be made to work by using: xloadimage `xlito -x fred.gif` This can be made transparent by using a script containing something like: xloadimage `xlito -x $*` The script could be called xli for instance. The options can be deleted with: xlito -d fred.gif AUTHOR
Graeme Gill Labtam Australia graeme@labtam.oz.au MAINTAINER
smar@reptiles.org COMPATIBILITY WITH IMAGE FILES
Some image files are actually ascii files that are used in other contexts. X Bitmap files are an example. They are formatted as 'C' style #defines and an initialised array of characters, so that they can be included in 'C' source code. Adding trailing options would therefore render the file unusable with a compiler, since it will get a syntax error on the railing option string and the magic numbers. The solution to this is that xlito will ignore a certain amount (a few hundred bytes) after the trailing options, and uses a padding of 20 bytes before the trailing options. These two areas will be maintained when changing an existing trailing option. In the case of an X bitmap then, the solution is to edit the file and place the embedded string in some 'C' comments: eg: say the file starts as: #define tt_width 4 #define tt_height 4 static char tt_bits[] = { 0x08, 0x02, 0x04, 0x01}; and you add a trailing options: #define tt_width 4 #define tt_height 4 static char tt_bits[] = { 0x08, 0x02, 0x04, 0x01}; 01234567890123456789XXX xloadimage trailing options XXX0007"-smooth"0007XXX xloadimage trailing options XXX Then the trailing options can be commented out: #define tt_width 4 #define tt_height 4 static char tt_bits[] = { 0x08, 0x02, 0x04, 0x01}; /*234567890123456789XXX xloadimage trailing options XXX0007"-smooth"0007XXX xloadimage trailing options XXX */ BUGS
xlito doesn't cope with compressed files. A files will need uncompressing, the options added, and then compressing again. 7 Jul 1993 XLITO(1)
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy