[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash, Sed and Find
From: |
Matt Venn |
Subject: |
Re: Bash, Sed and Find |
Date: |
Sat, 7 Apr 2001 12:38:06 +0100 |
User-agent: |
slrn/0.9.6.3 (Linux) |
>>One thing in particular that I don't understand is that I thought $()
>>was evaluated before the rest of the command.
>
>Yes you're right.
Thanks for spotting the obvious mistake! I can't believe that I didn't
get it myself...
Also someone told me about set -x, which would have showed me straight
away what the problem was.
Thanks again,
Matt
--
#!/usr/bin/perl
$A='A';while(print+($A.=(grep{($A=~/(...).{78}$/)[0]eq$_}" A A A "
=~m{(...)}g)?"A":" ")=~/([ A])$/){if(!(++$l%80)){print"\n";sleep 1}}