![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text Files | chapmana | UNIX for Dummies Questions & Answers | 3 | 11-22-2006 09:57 AM |
| Text files | DJM | UNIX for Dummies Questions & Answers | 1 | 08-18-2006 01:49 PM |
| text files, ASCII files, binary files and ftp transfers | Perderabo | Answers to Frequently Asked Questions | 0 | 04-08-2004 05:25 PM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 03:50 PM |
| two text files | ajnabi | Shell Programming and Scripting | 1 | 06-06-2002 12:25 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Treating bzip2 files as text files
To save space on our development box, I'd like to manipulate tab-delimited files (many of which are huge) in bzip2 format. For simple things, these commands work:
bunzip2 -c file.tab.bz2 | command | command bzcat file.tab.bz2 | command | command However, we do most of our work in Makefiles. So quite often I'll need something like this: outputFile.tab : file1.tab file2.tab someCommand $^ > $@ Since "someCommand" expects tab-delimited files, and doesn't accept piped input, it seems that I would need a way to either have a "make" variable which is a link to a shell command or a way to make something similar to a symbolic link in bash which allows me to make a shell variable into an alias for a command (bzcat file.tab.bz2). Is there any way to do this? Here's what I'd like it to look/work like: outputFile.tab.bz2 : file1.tab.bz2 file2.tab.bz2 someCommand $^ > $@ Or even: outputFile.tab.bz2 : file1.tab.bz2 someCommand < $< > $@ Thanks in advance, Shawn |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|