GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- simple script main loop case switch
Operating System - HP-UX
1845868
Members
4203
Online
110250
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-23-2002 03:03 AM
09-23-2002 03:03 AM
Hi,
looking for a script framework that reads and validates supplied args.
example, makefile:
make clean,
make all,
make build jar man depot
can't have
make all build ..
etc..
Thanks,
Bill
looking for a script framework that reads and validates supplied args.
example, makefile:
make clean,
make all,
make build jar man depot
can't have
make all build ..
etc..
Thanks,
Bill
It works for me (tm)
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 04:49 AM
09-23-2002 04:49 AM
Re: simple script main loop case switch
One perl possibility:
perl -nle '
CHECK: {
/^make build$/ and do {last CHECK};
/^make clean$/ and do {last CHECK};
/^make build( jar| man| depot)*$/ and do {last CHECK};
print "Error on $_";
}' txt
Tom
perl -nle '
CHECK: {
/^make build$/ and do {last CHECK};
/^make clean$/ and do {last CHECK};
/^make build( jar| man| depot)*$/ and do {last CHECK};
print "Error on $_";
}' txt
Tom
Carpe diem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 05:24 AM
09-23-2002 05:24 AM
Solution
A little bit cleaner...
perl -nle '
next if /^make build$/;
next if /^make clean$/;
next if /^make build( jar| man| depot)*$/;
print "Error on $_";
' txt
with your args in the "txt" file. Still have to write all of the REs by hand...
Tom
perl -nle '
next if /^make build$/;
next if /^make clean$/;
next if /^make build( jar| man| depot)*$/;
print "Error on $_";
' txt
with your args in the "txt" file. Still have to write all of the REs by hand...
Tom
Carpe diem!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP