From Windows WSL Linux Bash, copy the path of the most recently updated file captured by ShareX, a screen capture and screenshot software, to the clipboard. This is a personal memo.
wslpath -w $(find "/mnt/c/Users/user/OneDrive/ใใญใฅใกใณใ/ShareX/Screenshots/" -printf '%T+ %p\n' | sort -r | head -n 1 | sed -Ee "s/^.*(\/mnt.*\.(jpg|png))/\1/g") | clip.exe
alias getSharex='wslpath -w $(find "/mnt/c/Users/user/OneDrive/ใใญใฅใกใณใ/ShareX/Screenshots/" -printf "%T+ %p\n" | sort -r | head -n 1 | sed -Ee "s/^.*(\/mnt.*\.(jpg|png))/\1/g") | clip.exe'