I want to use
to count the number of lines of any command line statements as for example:
c:<>dir /s /b | sfk count
But this doesn't work. Any suggestions for 'one-liners'?
Aargh, no options for preview or editing after posting!
The 2nd grey box should read: c:\>dir /s /b | sfk count
Solved, this works:
c:\>sfk run -yes "dir /s /b" +count
You may also use:
dir /S /B | sfk filt -i -cnt
where -i means to read input from the previous command, and -cnt prepends a counter, or
dir /S /B | sfk filt -i +count
to tell just the number of lines.
if you just want to know the number of files in current dir and all sub dirs, then
sfk list . +count
tells this directly.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.