using cut command
Hi all,
Assume that i am having a text file in my server, and it is wirtten like this India America Japan china Hot to use cut command to echo the last value i.e.china in this case. The values keep on increasing but i want only the last value every time. How to acheive this, your suggestions would be very helpful. Thanks in advance, Dinesh. |
Use 'tail -n1' not cut.
|
"cut" is useful when you are dealing with columns of data, in your case as pointed out by the previous post "tail" would be an easier option.
|
Hi,
Thanks that works. |
All times are GMT -5. The time now is 10:56 AM. |