Nobody mentions $_ ? It gives you the last argument used, so:
cat filename.txt
grep "what I want" $_
expands "$_" to "filename.txt" cat filename.txt
grep "what I want" $_
expands "$_" to "filename.txt"No comments yet.