- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- format text
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
08-04-2006 02:15 AM
08-04-2006 02:15 AM
how can i format the text below whithout blank lines???
/dev/vg00/lvol7
/dev/vg00/lv52
/dev/vg00/lvol4
/dev/vg00/lvol5
/dev/vgwsx/lvol1
/dev/vg00/lvol6
/dev/vg00/lvoltib
/dev/vg00/lvol9
/dev/vgws_mpbe/lvol1
/dev/vgws_mpbe/lvol2
/dev/vgws_mpbe/lvol3
/dev/vgws_mpbe/lvol4
/dev/vgws_mpbe/lvol5
/dev/vgws_mpbe/lvol6
/dev/vgws_mpbe/lvolWS
regards .. I appreciated some help :)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-04-2006 02:30 AM
08-04-2006 02:30 AM
Solutioncat file | grep -v ^$
command | grep -v ^$
The grep command in this case display all lines that ARE NOT blank lines. (^$) means the start of the line and the end of the line, that is, the start and end are together, with no info between.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-04-2006 02:52 AM
08-04-2006 02:52 AM
Re: format text
Just the best..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2006 07:25 AM
08-07-2006 07:25 AM
Re: format text
sed '/^$/d' < myfile
or
{command} | sed '/^$/d'
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP