Thank you Giuseppe, I have switched to wc -w |cur -d ' ' -f 1
Regards, Iram. Giuseppe Scrivano a écrit :
Hello, if you need a specific wc output field, the words count in this case, you can use the command `wc -w FILE'. Is it what you want? Regards, Giuseppe Iram CHELLI <[email protected]> writes:Hello, i am using wc in shell scripts the exact command is: wc FILE | cut -d " " -f 2 it usually works but sometimes wc outputs the result in a different formatting, that is, I have to do a cut -d " " -f 3 to get the wc. This is not very convenient that the wc program shall not return results in a fixed formatting. Regards, Iram _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
