[KLUG Members] Re: Members Digest, Vol 7, Issue 13
Randall Perry
RandallP at domain-logic.com
Thu Dec 9 13:50:54 EST 2004
At 12:01 PM 12/9/2004, you wrote:
>I want something like the output of "find /usr/local -depth" for all
>files under /usr/local with dates of Nov 19 2001
>find /usr/local/ -ls -type f | grep -e "Nov 19 2001"
>
>worked for me. But there is a gotcha! - if the day is one digit then there are
>two spaces between the month and day instead of one space. There are always 2
>spaces between the day and month.
>
>This could be taken care of with a proper regexp
Or you can use sed to strip extra spaces out...
find /usr/local/ -ls -type f | sed -e "s/ \+/ /g" |grep 'Nov 19 2001'
*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.
Randall Perry
Domain Logic Technology Solutions
http://www.domain-logic.com
Every problem has a solution. If there is no solution, there is no problem
*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.
More information about the Members
mailing list