gwen (gwenix) wrote,

  • Mood:
ok, i feel like i've just taken another step into unix guru. i
just did:

root@qs377# foreach i ( `ls ????{092[3-9],0930,1001}*` )
foreach? ./logs `echo $i | sed s/\.logs//`
foreach? end

yes, i know it'd have been geekier to do the foreach on the same
line, but i like seeing it spread out. generally i'm doing more
than one line of commands at a time, and my shell allows me to
backscroll and edit the whole loop, so one line is unnecessary.

this disclaimer is to pre-empt athanasius and rapier1, :)

  • Upcoming Spring Concert for RCC!

    Hi folks! This Friday and Saturday (April 29 and 30) I'll be in the Renaissance City Choirs production of "Love of Nature, Nature of Love". I'm…

  • If Schroedinger called in a bug..

    Scenario: Schroedinger has a box with a verified dead cat in it. He hands the box to customer support of a company, who later hands him back that…

  • Pumpkin Pasta recipe

    I actually cooked a good meal the other night. Like, this is miraculous. Further, it was VERY low pointage for Weight Watchers, and incredibly…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded