I have a shell program that issues a command and redirects the resulting output to a file. The output, in some cases, is 165 characters long. Only 126 characters are being written to the file via the redirect! How can I make it write the entire line to file instead of truncating at 126 chars?
ps -ef | grep lmg > output.file