[kwlug-disc] Grep on Ubuntu 11.04 (aka The Natty Narwhal)

Darcy Casselman dscassel at gmail.com
Sat May 7 00:04:37 EDT 2011


I'm a little confused.

Can you give some input and expected output?

Darcy.

On Fri, May 6, 2011 at 11:32 PM, John Johnson <jvj at golden.net> wrote:
> What happened to my old friend: grep on Grep on Ubuntu 11.04 (aka The Natty
> Narwhal)?
> Grep on Ubuntu gives me all text matching and not matching - with matches in
> red.
> I could not find a switch that gives me only matching lines.
>
> context:
> As we all know *ix is case sensitive and Win** is not.
> On the website I had some image files with uppercase chars in the filename
> and lowercase filenames in the HTML.
> Needing to fix this, I started to work on a sh script to with:
> ls | grep [A-Z]
>
> intending to expand to
>
> ls | grep [A-Z] > rename.sh
>
> This failed when the grep gave me all filenames - matching and not matching.
> The Google was no help.
>
> I went back to using a command line grep on Win** and doing the file rename
> with a BAT file.
>
> Tx: JohnJ
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1209 / Virus Database: 1500/3621 - Release Date: 05/06/11
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>



More information about the kwlug-disc mailing list