Emmanuel Seyman <[EMAIL PROTECTED]> writes:

> On Wed, Nov 14, 2001 at 12:01:35PM -0500, Brad Cox wrote:
>>
>> How about echo Mail/* | sed s/ sent//g
>
> Make that `echo Mail/* | sed s#Mail/sent##` and
> you've got yourself a deal. Thanks Brad!
>

Emmanuel Seyman <[EMAIL PROTECTED]> writes:

>> What does `ls Mail' print?

> A whole load of names which I don't feel comfortable giving out
> over the Internet.

You could change names to give the scope of the problem.  However if
you are unwilling to provide example data, you will continue to get
half answers.

> On Wed, Nov 14, 2001 at 05:26:10PM +0100, Thomas Ribbrock wrote:
>> 
>> Well, how about
>> echo `ls ~/mail | grep -v '^sent'`
>
> Damn! I should have thought of that.
> Thanks to both of you.

Both: 
s#Mail/sent## 
and 
`ls ~/mail | grep -v '^sent'`
Will fail in the event of filenames like `unsent' or `notsent'

The `ls' example I cited can be refined to sort out those cases or any
others too.

>> Probably this will work depending on what file names are in there?
>> 
>> ls Mail/[a-rt-z]*
>> It will show all files except those beginning with `s'
>
> As I said in my first message, close but not close enough.

Really?.. All I see is:
`echo [^sent]*`
`echo [^s]*`

I see no examples of `ls' at all.

Can you show an example of what gets included with above 
`ls [a-rt-z]*' syntax,
changing the name if need be, to something that conveys the problem?



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to