- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- list file name
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 07:31 PM
07-03-2005 07:31 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 07:38 PM
07-03-2005 07:38 PM
Re: list file name
Perhaps you are thinking of something like
ls -la /tmp/myfile
?
or "'ll /tmp/myfile". ls -la, same as "ll". Still old school, so i use "ls -la" :)
or if you're looking for everything in /tmp that starts with slang in /tmp - then -:
ls -la /tmp/slang*
Regards,
David de Beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 07:55 PM
07-03-2005 07:55 PM
Re: list file name
interesting question - I never used 'ls -1'.
But simple:
ls -F -1| grep -v /
Option -F will give you a '/' after a directory. With 'grep -v /' you only see lines without/'
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:03 PM
07-03-2005 08:03 PM
Re: list file name
try
for I in /tmp/*
do
if [ ! -d ${I} ]
then
ll ${I}
fi
done
HTH,
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:10 PM
07-03-2005 08:10 PM
Re: list file name
ls -l | grep "^-" | awk '{ print $NF }'
I have used l for long-listing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:18 PM
07-03-2005 08:18 PM
Re: list file name
This is a public help forum, but there is a point system to let people know that you have gained something from other people's help.
You haven't yet assigned a single point.
Don't take it the other way, you are new so might not be knowing it.