List (or move) only files with a certain number of lines?
Dealing with a whole bunch of two-line config files, I’d like a way to exclude any files that have a different number of lines.
Dealing with a whole bunch of two-line config files, I’d like a way to exclude any files that have a different number of lines.
‘-1’
‘–format=single-column’
When ls
is called, it outputs all the files/directories in the current directory, attempting to fit as many as possible on each line. Why is it that when passed to wc -l
, it outputs the number of files? How does it decide how many lines to output its results in?