|
In lugnet.general, Bram Lambrecht writes:
> Has anyone coded some kind of utility which performs something similar to
> the following:
>
> Input: text file with list of set numbers
> Output: text file with set number, set name, number of pieces, and retail
> price
>
> I suppose the output would be delimited using commas or tabs or something.
> I would love something like this (I don't really need *all* the parts, but
> I'd prefer to at least have the number of pieces) to aid in inventorying my
> LEGO collection.
Here's a q&d pseudo-grep, if that helps...
#!/bin/sh
cat /home/username/lego/bynumber.txt | \
perl -e 'my %x = map {(split(/\t/,$_,2))[0], $_} grep {/^\d.*\t/} <STDIN>;
print join "", map {$x{$_}} @ARGV;' $*
--Todd
|
|
Message has 1 Reply:
Message is in Reply To:
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|