When I am busy with bash scripts , often need the filename only


with ls  command you can populate file names only in different line and you can take the first one with head


ls  -1    # 1 is the number not the letter l

and get the first one by

ls -1 |head -1


It's only fair to share...Tweet about this on TwitterShare on Google+Share on FacebookShare on LinkedInEmail this to someone
Twitter Auto Publish Powered By :