- 1). Navigate to the file you wish to edit and write down the file path; e.g. "/usr/home/example.txt".
- 2). Open a console by opening the Terminal program.
- 3). In the console, enter "awk '{sub($NF, "")};1' /usr/home/example.txt". The last element is now removed.
previous post
next post