01-26-2010
Quote:
Originally Posted by
Levi85
The only problem that it works correctly for the files with same length. So it ends if the shorter file ends.
Do you have any idea, how to solve it?
Hi, what would you like to happen if the shorter file ends prematurely?
Last edited by Scrutinizer; 01-26-2010 at 09:09 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a problem trying to run a while statement.
I have files under one directory that i need to compare to a value in filex and update that file with the result
files in the directory are
DFC1.
DFC5.
DFC345.
DFC344.
DFC9.
The program i am trying to run will take the number... (3 Replies)
Discussion started by: SummitElse
3 Replies
2. Shell Programming and Scripting
Hi,
I have two files, in which the second file has exactly the same contents of the first file with some additional records. Now, if I want to remove those matching lines from file2 and print only the extra contents which the first file does not have, I could use the below unsophisticated... (3 Replies)
Discussion started by: royalibrahim
3 Replies
3. Shell Programming and Scripting
Hi
I need to create a script that distributes in round robin fashion the contents of a file to 3 files. The number of lines in a content of file can vary from 1-n(Each line is just a one letter word).The entire lines needs to get distributed into 3 files ( The order doesnt matter) , at... (5 Replies)
Discussion started by: police
5 Replies
4. UNIX for Dummies Questions & Answers
I need to replace all filesnames in a folder as well as its content from AK6 to AK11. Eg Folder has files AK6-Create.xml, AK6-system.py etc.. the files names as well as contents should be changes to AK9-Create.xml, AK9-system.py etc
All files are xml and python scripts.
---------- Post... (0 Replies)
Discussion started by: Candid247
0 Replies
5. Shell Programming and Scripting
Hi ,
I have a Data cleansing process which creates different log file for each step , when the process runs it creates following log files in below order:
p1_tranfrmr_log.txt
p1_tranfrmr_stats.txt
p2_globrtr_log.txt
p2_globrtr_stats.txt
p3_cusparse_log.txt
p3_cusparse_stats.txt
'
'... (8 Replies)
Discussion started by: sonu_pal
8 Replies
6. Shell Programming and Scripting
Gents,
I have lot of files in a folder where each file name includes the date of generation, then I would like to merge
all the files for each date in a complete file.
list of files in forder.
dsd01_121104.txt
dsd01_121105.txt
dsd01_121106.txt
dsd03_121104.txt
dsd03_121105.txt... (7 Replies)
Discussion started by: jiam912
7 Replies
7. Shell Programming and Scripting
Hi
i need Script to copy the contents of two files into one file
i have 2 fil X1.txt / X2.txt i need script to copy the contents of X1 and X2 In AllXfile
X1.txt
File X1
X2.txt
File X2
AllXfile.txt
File X1
File X2 (2 Replies)
Discussion started by: azzeddine2005
2 Replies
8. Shell Programming and Scripting
Hi All,
I want to copy all the contents of a list of files in a folder to a particular file. i am using following command:
cat dir/* >> newFile.txtIt's not working.
Could you please help?
Thanks,
Pranav (3 Replies)
Discussion started by: Pranav Bhasker
3 Replies
9. Shell Programming and Scripting
I would like to join two files when two columns in each file matches with each other and then produce an output when taking multiple columns.
Like I have file A
1234,ABCD,23,JOHN,NJ,USA
2345,ABCD,24,SAM,NY,USA
5678,GHIJ,24,TOM,NY,USA
5678,WXYZ,27,MAT,NJ,USA
and file B
... (2 Replies)
Discussion started by: mady135
2 Replies
10. UNIX for Beginners Questions & Answers
I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt. I need each line prefaced with the hostname. I am unsure how to do this.
--- Post updated at... (5 Replies)
Discussion started by: Kentlee65
5 Replies
LEARN ABOUT DEBIAN
xcfinfo
xcfinfo(1) xcfinfo(1)
NAME
xcfinfo - display information about GIMP xcf files
SYNOPSIS
xcfinfo [ options ] filename
DESCRIPTION
xcfinfo is a command-line tool that displays information about the contents of image files in the XCF format used by gimp(1), particularly
about the layers in the image.
OPTIONS
-h, --help
Print an option summery to standard output and exit with a return code of 0.
-j, --bzip
Equivalent to -Z bzcat. Default if the filename ends with bz2.
-u, --utf8
Use the raw UTF-8 representation from the XCF file to compare and display layer names. Ordinarily, layer names will be converted
to the character set of the current locale.
-v, --verbose
Print progress messages about the conversion to standard error.
-V, --version
Print the version numer of xcftools to standard output and exit with a return code of 0.
-z, --gzip
Equivalent to -Z zcat. Default if the filename ends with gz.
-Z command, --unpack command
Specify a command that the input file is filtered through before being interpreted as an XCF file. The command is invoked as com-
mand filename and must produce output to its standard output. Note that it is not possible to specify arguments as part of com-
mand. An uncompressor is selected automatically if the filename ends with gz or bz2; to suppress this, use -Z cat (which is imple-
mented without actually starting a cat(1) process).
OUTPUT
Information about the image is displayed on standard output in a fixed format. The first line contains general information about the XCF
file:
- The file format version
- The canvas size
- The image mode (color, grayscale, or indexed)
- The numer of layers
- The internal compression algorithm
Following this line there is a line for each layer:
1) The character + if the layer is visible and - if it is not
2) The size and offset of the layer
3) The pixel format of the layer, including whether the layer has an alpha channel.
4) The layer mode, as well as the opacity if not 100%, and /mask if the layer has an active layer mask.
5) The name of the layer.
EXIT STATUS
The exit status of xcfinfo is
0 Success
20 Problems parsing the command line.
21 The specified XCF file does not exist or cannot be read.
123 The XCF file contains presumably valid features that xcftools does not support. (As of this writing there is no known way of getting
the Gimp to write an XCF file that will provoke this return. Please notify the author if you discover one).
125 The XCF file is malformed.
126 An uncompression program could not be executed, or terminated abnormally.
127 Unexpected I/O error, internal errors, or other "this can't happen" situations.
If an uncompression program returns an error exit status, this will be returned from xcfinfo too.
AUTHOR
xcfinfo was written by Henning Makholm <henning@makholm.net>.
SEE ALSO
xcf2pnm(1), xcf2png(1)
Xcftools 2006-02-12 xcfinfo(1)