10-17-2008
Looks good, sounds good, works good!
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any other way to open a file in append mode without using C calls or >> redirection? (1 Reply)
Discussion started by: vidhya
1 Replies
2. Shell Programming and Scripting
working on a c sell script
I think I understand the concept of it, which is:
filename >> file.txt (to appaend)
or filename | tee -a file.txt (to append)
The problem is that my shell script is used with several parameters, and these commands don't seem to work with just filename. They... (2 Replies)
Discussion started by: mistermojo
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Does anyone know if there is an unzip command similar to
tar -xOf $tarBall $fileInTarFile
which will untar a single file in a tar ball to STDOUT ?
I want to do the same but with a .zip (ZIP archive) file.
- Andy
---------- Post updated at 05:56 PM ---------- Previous update... (0 Replies)
Discussion started by: andyatit
0 Replies
4. Shell Programming and Scripting
Hi,
I would like to avoid re-directing line by line to a file.
What is the best way to re-direct STDOUT to a file in a subshell?
Thanks in advance.
Cheers
Vj (1 Reply)
Discussion started by: tnvee
1 Replies
5. Shell Programming and Scripting
Using echo command, send output to both places. I think I knew this but forgot. Thanks in advance (2 Replies)
Discussion started by: stevensw
2 Replies
6. Programming
I originally wrote my script using the korn shell and had to port it to bash on a another server. My script is working find for backing up but noticed that now after the move, I am not getting any output to my log files.
Using Korn shell, this worked for me for some odd reason. This was sending... (2 Replies)
Discussion started by: metallica1973
2 Replies
7. Shell Programming and Scripting
Assume I have 2 gz files with 2 lines each as below
a.gz
a1,a
a2,a
b.gz
b1,b
b2,b
If I issue
gzip -d -c *.gz
I will get below in the stdout
a1,a
a2,a
b1,b
b2,b
What I need it the filename appended to each row either at the front or back.
a.gz,a1,a
a.gz,a2,a (2 Replies)
Discussion started by: ericlim
2 Replies
8. Shell Programming and Scripting
I have a C program that continously outputs info to stdout. The problem is that I am redirecting the stdout and stderr to a file and stdout is written at the end of the problem rather than continously to the file. This could be a problem if for example the program is killed and the stdout output is... (3 Replies)
Discussion started by: igurov
3 Replies
9. Shell Programming and Scripting
I have to redirect STDERR messages both to screen and also capture the same in a file but STDOUT only to the same file.
I have searched in this formum for a solution, but something like
srcipt 3>&1 >&2 2>&3 3>&- | tee errs
doesn't work for me...
Has anyone an idea??? (18 Replies)
Discussion started by: thuranga
18 Replies
10. Shell Programming and Scripting
I cannot figure out what is wrong.... I have 3 files with IP addresses:
file1 134.123.3.236
file2 134.123.3.235
file3 134.123.5.237
I type "prob1 Oops x2x3x4". Then my code creates file with name Oops and first line x2x3x4. Moreover, my code generate IP and it gives to file Oops as a second... (1 Reply)
Discussion started by: Manu1234567
1 Replies
ppmd(1) utils ppmd(1)
NAME
ppmd - file-to-file compressor
SYNTAX
ppmd [e|d] [switches] filename...|wildcard...
DESCRIPTION
It is written for embedding in user programs mainly and it is not intended for immediate use. I was interested in speed and performance
improvements of abstract PPM model [1-6] only, without tuning it to particular data types, therefore compressor works good enough for
texts, but it is not so good for nonhomogeneous files (executables) and for noisy analog data (sounds, pictures etc.). Program is very mem-
ory consuming, you can choose balance between execution speed and memory economy, on one hand, and compression performance, on another
hand, with the help of model order selection option (-o).
OPTIONS
-d Delete file[s] after processing, default: disabled.
-s Silent mode.
-fName Set output file name to Name.
-mN Use N MB memory - [1,256], default: 10. The PPMII algorithm might need a lot of memory, especially when used on large files and/or
used with large model order. If ppmd needs more memory than you give it, the compression will be worse. The exact effect is depen-
dent on the -r option.
-oN Set model order to N - [2,16], default: 4. Bigger model orders almost surely results in better compression and surely more memory
and CPU usage.
-r{0,1,2}
Methods of restoration of model correctness at memory insufficiency:
'-r0 - restart model from scratch'. This method is not optimal for any type of data sources, but it works fast and efficient in
average, so it is the recommended method (default).
'-r1 - cut off model'. This method is optimal for quasistationary sources when the period of stationarity is much larger than
period between cutoffs. As a rule, it gives better results, but it is slower than other methods and it is unstable against fragmen-
tation of memory heap at high model orders and low memory.
'-r2 - freeze model'. This method is optimal for stationary sources (show me such source when You will find it ;-)). It is fast
and efficient for such sources.
EXAMPLES
To run this program the standard way type:
ppmd e /tmp/myfile
Alternatively you can run it as:
ppmd -e -o 16 /tmp/myfile
AUTHORS
PPMd was written by Dmitry Shkarin <dmitry.shkarin@mtu-net.ru> and Dmitry Subbotin.
SEE ALSO
gzip(1), bzip2(1), lzma(1).
10.1 2011-07-25 ppmd(1)