Python has been selected to create the code that answers this question.
We can code the answer using libraries like Pandas or directly without any package.
Script using Pandas
import pandas as pd df = pd.read_csv('doc.txt', sep=',', header=None) df.iloc[:,-1].head(10)
Script from scratch
f = open('doc.txt', 'r') for i in f: print(i.split(',')[-1].split('\n'))