- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find problem
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-07-2004 06:16 PM
тАО10-07-2004 06:16 PM
For ex:
crw------- 1 root root 15 0x000089 Sep 30 tunip9
prw------- 1 root root .... test1
srw------- 1 root ......... test2..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 06:31 PM
тАО10-07-2004 06:31 PM
SolutionYou can do it this way:
# find ./ -name "*xyz*" -print | xargs ls -al | grep ^c
# find ./ -name "*xyz*" -print | xargs ls -al | grep ^p
# find ./ -name "*xyz*" -print | xargs ls -al | grep ^s
Hope that helps
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 06:51 PM
тАО10-07-2004 06:51 PM
Re: find problem
use the following command for finding character (c) files in /dev.
# find /dev -type c -exec ll {} \;
if you want to check for all the system use '/' instead of '/dev' and use the following instead of 'c' for finding other types of files. see man page of find for more details.
f Regular file
d Directory
b Block special file
c Character special file
p FIFO (named pipe)
l Symbolic link
s Socket
n Network special file
M Mount point
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 07:09 PM
тАО10-07-2004 07:09 PM
Re: find problem
IF you want to get character files then,
find
IT will give every file there,
Else,
you can try with ll | grep '^
find
It will give character files there,
You can get file type on find man page there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 07:27 PM
тАО10-07-2004 07:27 PM
Re: find problem
you can do
ls -lR
or all in one
ls -lR|egrep "^c|^p"
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 07:29 PM
тАО10-07-2004 07:29 PM
Re: find problem
find / -type c -type p -type s -name "*" -exec ls -al {} \;
It will give every files full informations there.
We can do in another as,
find / -name "*" -exec ls -al {} \; | grep -E "^c|^p|^s"
HTH.