Hi,
thanks for helping, Hannes. I just had pretty busy days and didnt get
around to respond.
On Sat, May 28, 2022 at 09:10:45PM +0200, Hannes von Haugwitz wrote:
> if [ -f "disklist" ]; then
> while read -r host dev rest; do
> - if echo "${host}" | grep -q '^\\(#.*\\)\\?$'; then continue; fi
> + if echo "${host}" | grep -q '^(#.*)?$'; then continue; fi
> dev="$(echo "${dev}" | sed 's|[/:]|_|g;s|\\"||g')"
> if ! skip_multiline_dle; then
> printf
> "!/@@{AMANDA_INDEXDIR}/%s/%s/@@{YEAR4D}[0-9]{4}_[0123]\\.gz$ f\\n" "${host}"
> "${dev}"
how about
cat --squeeze-blank disklist | while read ...
done
?
That being said, I'm contemplating to introduce the concept of
"user-maintained rules" where the maintainers explicitly ask users to
help with certain rules. I haven't used amanda in years, and it is
pretty hard to maintain, debug and keep current complex rules for a
package that we don't use ourselves.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421