eg: If I execute an example tail statement to put rows from one file to another, it truncates some of the data.
/carrier>wc -l IntIndA.txt
1918 IntIndA.txt
/carrier>tail -1918 IntIndA.txt > test
/carrier>wc -l test
132 test
The tail command should copy 1918 rows to test file instead of 132 rows.
Could anybody please suggest me why this tail command in our unix box (HP-UX)behaves differently.
From the man page: "Tails relative to end-of-file are stored in a 20-Kbyte buffer, and thus are limited in length." That might be why. Try tailing from the beginning of the file, not the end, e.g.