Adding new line character

view full story

http://www.unix.com – Hi All, i am taking end of records using tail command got the out is "END OF FILE. ROW COUNT: 10" and record count in the file is 3. while append the both data into test2.txt file,it's append like Code: END OF FILE. ROW COUNT: 108 my output should be in the test2.txt file Code: END OF FILE. ROW COUNT: 10,8 i tried like... Code: tail -1 test1.txt > test2.txt; wc -l test1.txt| awk '{print $1-1}' >>test2.txt; Please help me.. Thanks, (HowTos)