[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to let -path match only relative path?
From: |
Peng Yu |
Subject: |
How to let -path match only relative path? |
Date: |
Sun, 5 Aug 2012 17:59:36 -0500 |
Hi,
/tmp/main$ find . -path '*/tmp*'
/tmp/main$ find /tmp/main -path '*/tmp*'
/tmp/main
The above commands show that -path match the whole path (/tmp/main)
rather than the relative path ('.'). Is there a way to always use the
relative path so that both of the above commands returns nothing?
--
Regards,
Peng
- How to let -path match only relative path?,
Peng Yu <=