Dec 18, 2003 #1 MoshiachNow IS-IT--Management Joined Feb 6, 2002 Messages 1,851 Location IL How would I grep out (grep -v) all lines that are empty in a file ? "Long live king Moshiach !" http://www.7for70.com/
How would I grep out (grep -v) all lines that are empty in a file ? "Long live king Moshiach !" http://www.7for70.com/
Dec 18, 2003 #2 aigles Technical User Joined Sep 20, 2001 Messages 464 Location FR Hi, Try : sed -e '/^$/d' input_file Jean Pierre. Upvote 0 Downvote
Dec 18, 2003 #3 dickiebird Programmer Joined Feb 14, 2002 Messages 758 Location GB How about grep -v "^$" < yourfile Dickie Bird (-))) Upvote 0 Downvote
Dec 18, 2003 Thread starter #4 MoshiachNow IS-IT--Management Joined Feb 6, 2002 Messages 1,851 Location IL Thanks,Dickie Bird I have tried it before in tcsh,it would not work. It does in ksh. "Long live king Moshiach !" http://www.7for70.com/ Upvote 0 Downvote
Thanks,Dickie Bird I have tried it before in tcsh,it would not work. It does in ksh. "Long live king Moshiach !" http://www.7for70.com/