CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
perl program to remove blank lines in a csv file

 



manoj1031
New User

Nov 16, 2011, 12:43 AM

Post #1 of 2 (5051 views)
perl program to remove blank lines in a csv file Can't Post

need a perl program to remove black lines from a csv file


FishMonger
Veteran / Moderator

Nov 16, 2011, 10:04 AM

Post #2 of 2 (5033 views)
Re: [manoj1031] perl program to remove blank lines in a csv file [In reply to] Can't Post

There are several ways to strip blank lines. Here's one.

Code
perl -ni.bak -e 'print unless /^\s*$/' file.csv


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives