Need to get First column from the text file

Hey Guys,

I have a very urgent requirement regaridng the searching for value on the text file.

The text file is in the below format

Number Description

"112323", mysampletest1

"12122412", mysampletest2

"11232143", mysampletest3

I need to get the first column like

112323
12122412
11232143

i did try with awk '{print $1}' xyz.txt

it prints the description also .

CAn you please suggest as to which command can make the above requiremet possoble.

Thanks in advance.

try this,

awk -F , '{print $1}' abc.txt
  • nilesh

Try also

cut -d, -f1 abc.txt