[CentOS] OT: Script Help

Thu May 30 17:02:04 UTC 2013
m.roth at 5-cent.us <m.roth at 5-cent.us>

Larry Martell wrote:
> On Thu, May 30, 2013 at 9:42 AM,  <m.roth at 5-cent.us> wrote:
>> Larry Martell wrote:
>>> On Thu, May 30, 2013 at 8:37 AM,  <m.roth at 5-cent.us> wrote:
>>>> Tilman Schmidt wrote:
>>>>> Am 18.05.2013 21:23, schrieb Larry Martell:
>>>>>> cat file | sed -e's/CN=DATA.OU=\(.*\)\.O=CO/CN=\1_DATA.OU=\1.O=CO/'
>>>>>
>>>>> http://en.wikipedia.org/wiki/Cat_%28Unix%29#Useless_use_of_cat
>>>>>
>>>>> Because a cat is a terrible thing to waste.
>>>>>
>>>> Without even reading the wikipedia piece, I can give my own annoyance
>>>> with anyone using cat to pipe through sed, or awk, or perl.... To me,
>>>> that
>>>> says they don't know their tools.
>>>
>>> I am 53 and I have programming since I was 16. I've been using
>>> Unix/Linux since 1977 and I've been gainfully employed since 1979
>>> (never at a job where I had to use Windows). So I assure you I know
>>> what I am doing.
>>
>> So why cat | sed?
>
> I really don't see why that is a big deal.

You, personally, fail to see, that is, don't comprehend, in what manner
that, perhaps, might possibly be a pointless and unnecessary, that is, an
action performed for no good reason, such as hand-washing a car that one
intends to run through a car wash...?

        mark