You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fff() { find . -type f -name "*${1}*" -print -quit; } # fff: find the first file recursively; $1: file name
22
22
fdf() { find . -type d -name "*${1}*" -print -quit; } # fdf: find the first directory recursively; $1: directory name
23
-
24
-
fffa() { find . -type f -wholename "*${1}*" -print -quit; } # fffa: find the first file recursively and return its absolute path; $1: file name
25
-
fdfa() { find . -type d -wholename "*${1}*" -print -quit; } # fdfa: find the first directory recursively and return its absolute path; $1: directory name
26
-
23
+
fffa() { find "$PWD" -type f -name "*${1}*" -print -quit; } # fffa: find the first file recursively and return its absolute path; $1: file name
24
+
fdfa() { find "$PWD" -type d -name "*${1}*" -print -quit; } # fdfa: find the first directory recursively and return its absolute path; $1: directory name
27
25
ffd() { echo"$(find . -type f -name "*${1}*" -exec sh -c 'echo "${1%/*}"; \
28
26
kill "$PPID"' sh {} \;)";} # ffd: find the first file recursively and print its containing directory; $1: file name
0 commit comments