How to specify more spaces for the delimiter using cut?
Is there any way to specify a field delimiter for more spaces with the cut command? (like ” “+) ? For example: In … Read more
Is there any way to specify a field delimiter for more spaces with the cut command? (like ” “+) ? For example: In … Read more
What’s wrong with the following code? name=”$filename | cut -f1 -d”.” As is, I get the literal string $filename | cut -f1 -d’.’, … Read more
I am working with two files, and I need to copy a few lines from one file and paste into another file. I … Read more
I’m trying to extract a certain (the fourth) field from the column-based, ‘space’-adjusted text stream. I’m trying to use the cut command in … Read more
Suppose I have the string 1:2:3:4:5 and I want to get its last field (5 in this case). How do I do that … Read more
I want to use space as a delimiter with the cut command. What syntax can I use for this? 8 Answers 8
Without using sed or awk, only cut, how do I get the last field when the number of fields are unknown or change … Read more