Post #3997815
2026-07-21 03:27 UTC
Bash oneliner to invoke commands in your history by their line number:
alias lineRead='read -p "Enter line number: " lineNum; $(history | grep $lineNum | head -1 | sed s/$lineNum//)'
#bash
Replies (0)
No replies.