Re: SUMMARY- Backup Copilot tape library trubbles

From: Matthew Stier - Sun NC Development Center (matthew@sunpix.East.Sun.COM)
Date: Wed Sep 30 1992 - 11:36:01 CDT


In article <1992Sep29.211102.23578@asl.dl.nec.com> drinckes@csl.dl.nec.com (Doug Rinckes) writes:
}
}#! /bin/sh
}# Get hostname from command-line, default to `/usr/bin/hostname`.
}hostname=${1-`/usr/bin/hostname`}
}# Specify dumpex's command-line
}dumpex="/usr/etc/dumpex -n ${hostname}"
}# Specify dumptm's command-line
}dumptm="/usr/etc/dumptm -C ${hostname} -l "
}# Specify sort's command-line (sort by year(6), month(3), day(4), time(5))
}sort="/usr/bin/sort +6 +3M +4 -5"
}# Specify echo's command-line
}echo="/usr/bin/echo"
}# Run dumpex, scroll a line, run dumptm and sort the result.
}${dumpex}; ${echo}; ${dumptm} | ${sort}
}
}
}Many thanks to:
} Brian.Berliner@Central.Sun.COM Brian Berliner
}
}

Wouldn't you know that the original request came right after I fixed the
script to handle years correctly, but ended up inserting another bug.

The options for sort need to be "+6 -7 +3M +4 -6". If the changes are
not made, any non-matches after column 6 will stop the sort and leave
you with some unsorted entries.

Sorry for the problem.

-- 
Matthew Lee Stier                          |
Sun Microsystems ---  RTP, NC  27709-3447  |     "Wisconsin   Escapee"
Email: matthew.stier@East.Sun.COM          |
Phone: (919) 469-8300 fax: (919) 460-8355  | 



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:50 CDT