Click to See Complete Forum and Search --> : setting the delimiter field in cut


stiles
09-13-2001, 10:29 PM
I want to set the delimiter field to a carriage return for cut, but how do you set it as a carriage return? Anyways I'm trying to return the second to last entry in a file that has date +%s >> to it.

tail -n 2 file | cut -d="
" -f 1

well that doesn't work. Anyone know off hand?

stiles
09-13-2001, 10:39 PM
never mind this worked:

tail -n 2 file | cut -d "
" -f 1