- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Directory Help
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
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
тАО02-05-2008 08:49 AM
тАО02-05-2008 08:49 AM
I have error.com, error.lis, error.rep.
I need some incantation of dir that will return just error. as you see no extension.
Is there a such a parameter?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 09:05 AM
тАО02-05-2008 09:05 AM
Re: Directory Help
what you should try is
dir error.
note the trailing full stop
you can see specific versions with
dir error.;-1
etc
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 09:22 AM
тАО02-05-2008 09:22 AM
Re: Directory Help
Do you just want to drop the versions and show just 1 copy with no version?
$ pipe dir *.*; | perl -pe "s/;\d+//g"
Note, the ";" after the filespec is critical to report a single (the highest) version.
1 file per line, or columns?
$ perl -le "print foreach (
1 name, no extention, no version per 'group'?
$ perl -le "$names{(split /\./)[0]}++ foreach (<*>); print foreach (sort keys %names)"
Why do you need the particular output?
What problem are you really trying to solve?
Maybe we can help better know that!
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 10:40 AM
тАО02-05-2008 10:40 AM
Solution$ dir/col=1
Directory ROOT$USERS:[JON.DIRECTORY_TEST]
ABC.1;2
ABC.1;1
ABC.2;1
ABC.3;1
DEF.TXT;1
Total of 5 files.
$ pipe dir *.*; /select=(file:(nonode,nodev,nodir,notype,nover)) /nohead/notrail | sort sys$pipe sys$output /nodup
ABC
DEF
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 11:05 AM
тАО02-05-2008 11:05 AM
Re: Directory Help
Yes, DIRECTORY/COLUMN=1 *.; should do it. If you are building this list for further processing, the /NOHEAD and /NOTRAIL parameters may be of use.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 11:30 AM
тАО02-05-2008 11:30 AM
Re: Directory Help
Thank you. That does exactly what I was looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 11:43 AM
тАО02-05-2008 11:43 AM
Re: Directory Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 01:26 PM
тАО02-05-2008 01:26 PM
Re: Directory Help
In a loop...
f$search("ddcu:[dev]ERROR.*",1)
gets the file
then f$parse to extract the filename from the full specification.
There are almost certainly examples of this DCL file-processing loop around the 'net.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2008 01:50 PM
тАО02-05-2008 01:50 PM