Sample Header Ad - 728x90

How to extract the number of lines from the wc command output

0 votes
0 answers
72 views
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!
Asked by Tung (171 rep)
Nov 1, 2023, 10:05 AM