- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- list file difference
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
12-12-2007 07:44 PM
12-12-2007 07:44 PM
list file difference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 08:10 PM
12-12-2007 08:10 PM
Re: list file difference
The solution is to add the -d option. ls -d *tmp* will list the directory name but not the contents.
A man ls would have explained this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 08:13 PM
12-12-2007 08:13 PM
Re: list file difference
*.tmp This will show all files AND directories with *.tmp. If no directories, you just see the files.
*tmp will show all files AND directories with *tmp. If it finds directories, then subdirectory contents are listed too. If you want to stop that, use: ls -d *tmp
If you want to go all the way down (to the bottom turtle :-), add -R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 09:24 PM
12-12-2007 09:24 PM
Re: list file difference
*.tmp means anything ending with .tmp
and
*tmp means anything ending with tmp
generally we have only files with name .tmp and not dorectory.
And that is I suppose is the question to your answer.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 11:09 PM
12-12-2007 11:09 PM
Re: list file difference
I understand it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:01 AM
12-13-2007 12:01 AM
Re: list file difference
Our answers weren't worth any points? :-)
You can reopen this with:
http://forums12.itrc.hp.com/service/forums/helptips.do?#41
You should at least indicate your problem was solved, with a bunny.