Skip to content
Prev 24979 / 398502 Next

What else do tab-delimited and csv do differently?

On Wed, Nov 06, 2002 at 02:51:20PM +1300, Patrick Connolly wrote:
...
Weird.

I've had some trouble with Excel before, adding a bunch of delimiters to the
end of rows, for reasons only Excel understands.

On the Linux box, try
#for the tab separated file
awk -F"\t" '{print NF}' myfile.txt | sort -u

#for the csv file
awk -F"," '{print NF}' myfile.csv | sort -u

Cheers

Jason
Message-ID: <20021106055657.A4834@camille.indigoindustrial.co.nz>
In-Reply-To: <20021106015120.GC11499@hortresearch.co.nz>; from p.connolly@hortresearch.co.nz on Wed, Nov 06, 2002 at 02:51:20PM +1300