Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2006, 04:09 AM   #1
Registered: Jun 2005
Location: CyberIsland
Distribution: Debian and Fedora
Posts: 31

Rep: Reputation: 15
filter a data sheet for blank spaces

I have a datasheet with data organised in columns and seperated by tabs. I am trying to filter out only those rows where data are missing.


1 2 3 4
5 7 8

that is I am trying to retrieve the second row but in vain. If the columns were seperated by spaces I could have use d the class name [[:space:]] with grep to get the result.. is there a related class name for tab? or is there another method than grep to obtain the desired result..

Last edited by tjgadu; 04-20-2006 at 04:10 AM.
Old 04-20-2006, 11:30 AM   #2
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
Try using sed. I have a book that I need to find and then will post mor information when I find it.
Old 04-20-2006, 11:39 AM   #3
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
sed '/^$/d' "input file"
Deletes all blank lines


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Printer prints blank sheet as last page jim_earl Fedora 4 08-08-2005 10:58 PM
Error when blank data CD is inserted Quercus ruber Linux - Hardware 4 03-08-2005 03:56 AM
how to import MS-Excel sheet data using PHP dileepkk Programming 1 07-28-2004 02:23 PM
Problem with SED and blank spaces BigLarry Programming 2 06-10-2004 04:57 AM
mp3 files - replacing blank spaces with _ script? mymojo Linux - Newbie 4 12-08-2003 03:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration