[Cialug] Where's the CD Device?
Daniel A. Ramaley
daniel.ramaley at drake.edu
Thu Feb 13 17:30:04 CST 2014
On 2014-02-13 at 17:14:34 Nicolai wrote:
> On Thu, Feb 13, 2014 at 01:41:35PM -0600, Daniel A. Ramaley wrote:
> > For data CDs, you can rip a perfect image; this is the procedure i
> > use;>
> > there is probably something simpler:
> > $ DEV=/dev/scd0
> > $ BS=`isoinfo -i $DEV -d | grep 'block size is' | \
> >
> > awk -F': ' '{print $2}'`
>
> Why not simply:
>
> awk -F': ' '/block size is/ {print $2}'
>
> No need to grep.
Yeah, i noticed that optimization when i was copy/pasting the commands
from my notes. I wrote that sequence years ago when i was less
knowledgeable in the ways of awk. I'd do it your way if i were writing
them now.
__
Daniel A. Ramaley
Network Engineer 2
Dial Center 112, Drake University
2407 Carpenter Ave / Des Moines IA 50311 USA
Tel: +1 515 271-4540
Fax: +1 515 271-1938
E-mail: daniel.ramaley at drake.edu
More information about the Cialug
mailing list