[ale] Need help with RE in egrep

Jim Lynch ale_nospam at fayettedigital.com
Sun Sep 19 08:23:56 EDT 2010


I did a find . | sed 's!^/.\+/!/!'

And it produced the output I was looking for.  I didn't investigate it 
any further.

Thanks,
Jim.
On 09/18/2010 06:39 PM, Richard Bronosky wrote:
> I have no idea how that solves the need you explained. I write sed and
> awk everyday. I have no idea how a substitution (the s in that sed
> script) could ever work to "generate a list of files in a directory,
> excluding the top level hidden directories and files." I can only
> imagine doing this with the d command like so:
> find . | sed '/^\.\/\./d'
>
> On Sat, Sep 18, 2010 at 4:32 PM, Jim Lynch
> <ale_nospam at fayettedigital.com>  wrote:
>    
>> On 09/18/2010 04:02 PM, Jim Kinney wrote:
>>      
>>> sed 's!^/.\+/!/!'
>>>        
>> That works, thanks.
>>
>> Jim.
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>      
>
>
>    



More information about the Ale mailing list