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: bill.n1vux at gmail.com (Bill Ricker)
- Date: Fri, 23 Aug 2019 20:53:05 -0400
- In-reply-to: <5d6077ff.1c69fb81.e4e51.4e88@mx.google.com>
- References: <cccf29d6-362e-020f-f28b-d0e950ee002f@horne.net> <5d6077ff.1c69fb81.e4e51.4e88@mx.google.com>
> > . > > If you know what should be in the file then create a new file with the > correct data Or, itemize everything that could be in the file and use diff to find the differnces. > If files are sorted, comm (1) is more efficient and has different output options than diff (1). If necessary, lc or uc the files. The sort and comm must be wrto the same Locale Collation. LC_ALL=C for both will assure that. An awk, perl, or python generator command can be piped to one of the two inputs of comm in modern bash via <() command syntax. I often put canonicalizing commands in both.
- References:
- [Discuss] Please help with a BASH puzzle
- From: bill at horne.net (Bill Horne)
- [Discuss] Please help with a BASH puzzle
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Please help with a BASH puzzle
- Prev by Date: [Discuss] Please help with a BASH puzzle
- Next by Date: [Discuss] Please help with a BASH puzzle
- Previous by thread: [Discuss] Please help with a BASH puzzle
- Next by thread: [Discuss] Please help with a BASH puzzle
- Index(es):