[CentOS] OT: Script Help

Larry Martell larry.martell at gmail.com
Thu May 30 15:52:00 UTC 2013


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.



More information about the CentOS mailing list