01-16-2012
cat wouldn't "overlap" them. It would write them out verbatim, one by one.
If any of them might be changing while cat is running, that would be a problem however.
What exactly is going wrong? What output are you getting versus what output do you want?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Friends,
I have two very large plain text files with pipe delimited as below.
Both files are not sorted.
Both files have 200,000 of rows.
FName|LName|Address|HPhNumber
Is perl or shell script feasible for this task?
Thanks,
Prashant (1 Reply)
Discussion started by: ppat7046
1 Replies
2. UNIX for Dummies Questions & Answers
Dear UNIX-Community,
can help me doing 2 things in Debian 5.0?
1.) Create 100 folders
Format: ./0/0, ./0/1, ./0/2, ...,./0/9, ./1/0/, ..., ./9/9
2.) Move over 200.000 files into the subdirectories according to their last digits.
12398123.dat -> ./3/2/12398123.dat
48161.dat ->... (2 Replies)
Discussion started by: diadas
2 Replies
3. Shell Programming and Scripting
Hi, I want to create a batch(bash) file to combine 23 files together. These files have the same extension. I want the final file is save to a given folder. Once it is done it will delete the 23 files.
Thanks for help. Need script. (6 Replies)
Discussion started by: zhshqzyc
6 Replies
4. Shell Programming and Scripting
Hi All,
I have some 30,000 files in one directory. The files look like this:
computer
networks
router
wire
I want to remove those files which have less than 200 lines for example in the above file, the number of lines is 4.
I am trying something like this:
find /path/to/dir -type f... (5 Replies)
Discussion started by: shoaibjameel123
5 Replies
5. Shell Programming and Scripting
I have a file named "file1" which has the following data
10000
20000
30000
And I have a file named "file2" which has the following data
ABC
DEF
XYZ
My output should be
10000ABC
20000DEF (3 Replies)
Discussion started by: bobby1015
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a process which creates almost 200K files. Each file ranging from 1kb to 5kb. This is almost 2GB of data in all files.
I have a requirement where the business needs only 100MB worth of files.
Is there a way to get files around 100MB (doesn't have to be exactly 100MB) from all the... (2 Replies)
Discussion started by: grep_me
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Need your help.
I will need to concatenate around 100 files but each end of the file I will need to insert my name DIRT1228 on each of the file and before the next file is added and arrived with just one file for all the 100files.
Appreciate your time.
Dirt (6 Replies)
Discussion started by: dirt1228
6 Replies
8. UNIX for Dummies Questions & Answers
Hi
I am trying to learn linux step by step an i am wondering
can i use cat command for concatenate files but i want to place context of file1 to a specific position in file2 place of file 2 and not at the end as it dose on default?
Thank you. (3 Replies)
Discussion started by: iliya24
3 Replies
9. UNIX for Dummies Questions & Answers
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Discussion started by: eskay
0 Replies
LEARN ABOUT FREEBSD
ppmquantall
ppmquantall(1) General Commands Manual ppmquantall(1)
NAME
ppmquantall - run ppmquant on a bunch of files all at once, so they share a common colormap
SYNOPSIS
ppmquantall [-ext extension] ncolors ppmfile ...
DESCRIPTION
Takes a bunch of portable pixmap as input. Chooses ncolors colors to best represent all of the images, maps the existing colors to the new
ones, and overwrites the input files with the new quantized versions.
If you don't want to overwrite your input files, use the -ext option. The output files are then named the same as the input files, plus a
period and the extension text you specify.
Verbose explanation: Let's say you've got a dozen pixmaps that you want to display on the screen all at the same time. Your screen can
only display 256 different colors, but the pixmaps have a total of a thousand or so different colors. For a single pixmap you solve this
problem with ppmquant; this script solves it for multiple pixmaps. All it does is concatenate them together into one big pixmap, run
ppmquant on that, and then split it up into little pixmaps again.
(Note that another way to solve this problem is to pre-select a set of colors and then use ppmquant's -map option to separately quantize
each pixmap to that set.)
SEE ALSO
ppmquant(1), ppm(5)
AUTHOR
Copyright (C) 1991 by Jef Poskanzer.
27 July 1990 ppmquantall(1)