ls-command-list-one-file-per-line

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 Twitter
Twitter
Share on Google+
Google+
Share on Facebook
Facebook
Share on LinkedIn
Linkedin
Email this to someone
email
WP Twitter Auto Publish Powered By : XYZScripts.com