Skip to main content
the space between the f and th argument is needed
Source Link
eyoung100
  • 7.5k
  • 25
  • 54

Try:

cut -f3f 3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Hint: This works because even though the comma is the delimiter, it isn't specified by the -d option.

Try:

cut -f3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Hint: This works because even though the comma is the delimiter, it isn't specified by the -d option.

Try:

cut -f 3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Hint: This works because even though the comma is the delimiter, it isn't specified by the -d option.

Added Hint
Source Link
eyoung100
  • 7.5k
  • 25
  • 54

Try:

cut -f3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Hint: This works because even though the comma is the delimiter, it isn't specified by the -d option.

Try:

cut -f3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Try:

cut -f3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.

Hint: This works because even though the comma is the delimiter, it isn't specified by the -d option.

Source Link
eyoung100
  • 7.5k
  • 25
  • 54

Try:

cut -f3 -d ';' -s students.txt

From the cut man page:

-s, --only-delimited

do not print lines not containing delimiters

I believe in this case s would stand for suppress.