- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trouble with SED
Operating System - HP-UX
1752329
Members
5896
Online
108786
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
Discussions
Discussions
Forums
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
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
тАО08-12-2004 06:50 AM
тАО08-12-2004 06:50 AM
getting unable to parse on the following sed stmt:
sed -n '${x},${y}p' $filnam
where x=beginning line number and
y=ending line number of text in a file I'm trying to extract. Been searching manuals but no solution yet.
sed -n '${x},${y}p' $filnam
where x=beginning line number and
y=ending line number of text in a file I'm trying to extract. Been searching manuals but no solution yet.
"Life is love and love is life"
Solved! Go to Solution.
- Tags:
- sed
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 06:54 AM
- Tags:
- quoting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 08:57 AM
тАО08-12-2004 08:57 AM
Re: Trouble with SED
Chris,
It is because the single quotes around the expression will not let the shell to expand the values of $x and $y.
Use double quotes around the expression.
sed -n "${x},${y}p" $filnam
Sundar
It is because the single quotes around the expression will not let the shell to expand the values of $x and $y.
Use double quotes around the expression.
sed -n "${x},${y}p" $filnam
Sundar
Learn What to do ,How to do and more importantly When to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2004 11:00 AM
тАО08-12-2004 11:00 AM
Re: Trouble with SED
Thanks folks, that fixed the problem. Both your time and expertise was greatly appreciated.
Very Respectfully,
Chris Elmore
Very Respectfully,
Chris Elmore
"Life is love and love is life"
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP