[Tfug] Quick command line question...
Calvin Dodge
caldodge at gmail.com
Wed Mar 10 21:08:58 MST 2010
Oops - my bad!
On Wed, Mar 10, 2010 at 2:02 PM, Terence Rudkin <trudkin at gmail.com> wrote:
>
>
> On Wed, Mar 10, 2010 at 1:30 PM, Jim March <1.jim.march at gmail.com> wrote:
>
>> 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?
>>
> Don't know if this is all bu the curlys are missing in the find.
> try:
> perl -pi -e s/regurjitation/regurgitation/g $(find ./ -name '*.TXT' -type f
> -exec grep -l regurjitation {} \;)
>
>
>
>
>
>>
>> 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
>> >>
>> >
>>
>> _______________________________________________
>> Tucson Free Unix Group - tfug at tfug.org
>> Subscription Options:
>> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>>
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20100310/08b39d13/attachment-0002.html>
More information about the tfug
mailing list