|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Arrrgh! I grabbed a copy of bzip2 so I could unzip .bz2 files on my Win32 machine. Alas, the results of the bzip2~1 -h command don't all fit on the screen. Solution? Why, redirect to a file of course:
bzip2~1 -h>somefile.txt However... the %&*(%^& output still goes to STDOUT! Anyone know how I can read the help info for this? I tried piping to more, redirecting to a file... I even wrote a perl script and tried to catch the output in a $scalar with the `` backticks statement, but it always goes to STDOUT instead of where I tell it! BLAH! |
|
#2
|
|||
|
|||
|
Do you use cygwin enviroment?
|
|
#3
|
||||
|
||||
|
If you have the cygwin environment, then use the less command (bzip2 --help | less) or view the man page (man bzip2)
If you don't have cygwin, get cygwin |
|
#4
|
|||
|
|||
|
I think PowerArchiver can handle bzip files. Its just like winzip execpt it can handle more file types and has better shell and context menus.
Eclipce
__________________
Baptism By The Scriptures | Fifty Objections to Baptism Answered | HTML Bible | God's Salvation Plan Lifetime Residual Income |
|
#5
|
||||
|
||||
|
Nope, I haven't gotten around to cygwin yet... stupid Windoze console is SUPPOSED to be able to redirect and pipe. ACTUALLY... if I redirect the ouput to a file, it create a 0-byte file with the name I specified, and still puts the output to STDOUT!
![]() Redirection and piping work just fine on the console when you don't supply a switch to the app... ARGH! I actually finally did just use the command "bzip2~1 -d filename.bz2" and it wound up making a 13.0 MB tarball with no extension. I thought at first the extension was supposed to be .htm. Imagine trying to open a 13MB PHP manual in IE5.5 all at once! It caused so many problems I couldn't delete the file from an Explorer window because it thought the file was still in use... (then I figured out the 13 MB file should have a .tar extension, not a .htm extension... then everything worked out!)I think it's time to check into cygwin once and for all, and I'm going to go check out the PowerArchiver as well. Thanks all! |
|
#6
|
||||
|
||||
|
PowerArchiver is a good utility tool, too bad it is no longer freeware.
|
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > Monkey$oft Console Redirection No Go |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|