Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. r063r7

    delete the last character of a file

    I came across this method of concatenating strings while studing for a test. It accomplishes the same thing as some of the previous posts. 20:08:07 | cat testfile alpha beta gamma delta 20:08:17 | nawk '{list=list" "$1}END{print list}' testfile alpha beta gamma delta r063r7
  2. r063r7

    delete the last character of a file

    I am not sure if you meant to delete the last character of every line or the last character of the file. This should delete newline characters from the end of each line: 02:35:17 | cat dog filename=$1 awk '{printf("%s ",$0)};END{print}' $filename 02:35:24 | cat testfile alpha beta...

Part and Inventory Search

Back
Top