WhoisDataPro
Please Login or Register

Knowledgebase

Linux - Delete .csv column

Before you start you need to install

Ubuntu - sudo apt-get install libtext-csv-perl

CentOs - sudo yum install perl-Text-CSV


Then you need to download our script and assign the correct permissions. Place this script in the same folder your .csv files are in

wget http://195.154.61.188/script/deletecolumn.perl
chmod +x deletecolumn.perl

After downloading you need to edit the line below in deletecolumn.perl

print "\"$column[0]\",\"$column[2]\"\n";

By default this will only keep columns 0 and 2 (A and C, domainName and contactEmail)

0 = Column A
1 = Column B
2 = Column C
3 = Column D and so on...

Once you've edited it you need to run it using the following command

./deletecolumn.perl YourFileName.csv > YourNewFileName.csv



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search