BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Please help with a BASH puzzle
- Subject: [Discuss] Please help with a BASH puzzle
- From: david at thekramers.net (David Kramer)
- Date: Sat, 31 Aug 2019 16:24:47 -0400
- In-reply-to: <877e6uw1ae.fsf@hobgoblin.ariadne.com>
- References: <877e6uw1ae.fsf@hobgoblin.ariadne.com>
On 8/30/19 9:50 PM, Dale R. Worley wrote: > discuss-request at blu.org writes: >> From: Bill Horne <bill at horne.net> >> I'm trying to do something that should be very easy to do, and yet I >> can't remember how to do it, and I'm asking for help. >> >> I have an alpha-numeric, sorted file, that looks like this: >> I'm trying to remember what BASH utility, script, or? command would flag >> the missing value (in this case, "01AD"). > Of course, the hard part is doing it without materializing the list of > all possible words with which you want to compare your file. > > Dale Well, I already showed two different ways of doing that, with brace expansions in bash and with bc, which can do base 36 math to calculate the next expected value.
- References:
- [Discuss] Please help with a BASH puzzle
- From: worley at alum.mit.edu (Dale R. Worley)
- [Discuss] Please help with a BASH puzzle
- Prev by Date: [Discuss] Reliable external HD enclosure for Linux?
- Previous by thread: [Discuss] Please help with a BASH puzzle
- Next by thread: [Discuss] fc30 keyboard issues
- Index(es):