Skip to content

Commit d15a7f4

Browse files
author
linux-shell-base
committed
Fix line spacing in aliases files
1 parent 637e66e commit d15a7f4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

aliases/aliases-linux-output_only-multi-value.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ alias ll='command ls -FGlAhp'
2323
#[Finding]
2424
ff() { find . -type f -name "*${1}*"; } # ff: find one or more files recursively and list them; $1: file name
2525
fd() { find . -type d -name "*${1}*"; } # fd: find one or more directories recursively and list them; $1: directory name
26-
2726
ffgr() { /usr/bin/grep -l -R "${1}" .; } # ffgr: find all files recursively containing the given text and list them; $1: text
2827

2928
# ======= 3. NETWORKING MANAGEMENT ============================

aliases/aliases-linux-output_only-single-value.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ getpid() { lsof -t -c "${@}" 2>/dev/null; }
2020
#[Finding]
2121
fff() { find . -type f -name "*${1}*" -print -quit; } # fff: find the first file recursively; $1: file name
2222
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
2725
ffd() { echo "$(find . -type f -name "*${1}*" -exec sh -c 'echo "${1%/*}"; \
2826
kill "$PPID"' sh {} \;)" ;} # ffd: find the first file recursively and print its containing directory; $1: file name
2927

0 commit comments

Comments
 (0)