When running wc -l models.txt, we get the output which looks like 2113 models_work.txt. I wonder how to get the 2113 from that output using the cut command or something along those lines. It doesn't work when combined with the cut command like wc -l models.txt | cut -f1. Any help would be appreciated! Tks!
wc -l < models.txtfor a single file, becausewcwill not then show any filename.cut, you just need to cut at spaces, not at tabs:cut -d ' 'cutdoes not have the option-d, @KamilMaciorowski!cutthen, as-dis in the POSIX specification.