How to find out if you have ~/source already as a directory?
by linux-man from LinuxQuestions.org on (#6K1HH)
I need to find out if I already have a directory called ~/source. What am I doing wrong below? Thanks in advance.
Code:$find /path/to/search -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?
find: i/path/to/searchi: No such file or directory
$find $HOME -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?
Code:$find /path/to/search -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?
find: i/path/to/searchi: No such file or directory
$find $HOME -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?