- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Print option...
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
01-11-2001 09:04 AM
01-11-2001 09:04 AM
Print option...
I hope someone can help me with this problem.
I have a 1000 pages report that need to be printed everyday; however the user only need to see from pg 40-100. The set up of the report is :
COL1 (\t) COL1 (\t) ..... PAGE: #
COL1 .................... CLIENT PAGE: #
I'd tried:
sed -n '40,100p' filename
but it only print LINE 40 -100 not page. I even tried:
sed -n '/PAGE; 40/,/PAGE: 100/'p filename
but sed complains "sed : function /PAGE: 40/ /PAGE: 100/ can not be parse.
Any help is greatly appreciate.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 09:15 AM
01-11-2001 09:15 AM
Re: Print option...
Here's a good thread on this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html
Just a thought,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 10:30 AM
01-11-2001 10:30 AM
Re: Print option...
sed -n '/PAGE: 40/,/PAGE: 100/p'
I successfully ran this on hpux 10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 11:29 AM
01-11-2001 11:29 AM
Re: Print option...
1st. Email was not an option. If only ....
2nd. the command did not work either - there was no complain this time about parse error. It just jump back to the promt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 12:43 PM
01-11-2001 12:43 PM
Re: Print option...
split -l 1200
to split it into multiple files of 1200 lines (20 pages) long, then cat the 3rd-5th files together and print the resultant file.
I know... going the long way around, but it may work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2001 12:49 PM
01-11-2001 12:49 PM
Re: Print option...
I had been working on this problem since I last posted the question and "solve" the problem - HALF way. This is what I did
awk '$NF ~ /^40$/,/^100$/ { print $0 }' FILE
It printed form pg 40 to the end of the report.
Thank you in advance for your assistant.