[Tfug] Quick command line question...

Jim March 1.jim.march at gmail.com
Wed Mar 10 13:30:34 MST 2010


Oh, and Calvin's method with perl errors out...

jim at jim-lappy ~/Desktop/ERIC/latest-adms $ perl -pi -e
s/regurjitation/regurgitation/g $(find ./ -name '*.TXT' -type f -exec
grep -l regurjitation)
find: missing argument to `-exec'
^C
jim at jim-lappy ~/Desktop/ERIC/latest-adms $ ^C

Any help getting that to run?

Thanks,

Jim

On Wed, Mar 10, 2010 at 1:26 PM, Jim March <1.jim.march at gmail.com> wrote:
> ONE MORE QUESTION: can this process handle strings with spaces in 'em
> instead of just whole words?
>
> In other words, change all instances of "Hand Counted Paper Ballots" to "HCPB"?
>
> Thanks!
>
> Jim
>
> On Wed, Mar 10, 2010 at 9:59 AM, Bexley Hall <bexley401 at yahoo.com> wrote:
>> --- On Wed, 3/10/10, bpoag at comcast.net <bpoag at comcast.net> wrote:
>>
>>> sed is your friend.
>>
>> +1
>>
>>
>>
>>
>> _______________________________________________
>> Tucson Free Unix Group - tfug at tfug.org
>> Subscription Options:
>> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>>
>




More information about the tfug mailing list