I have a file which is named “-l”, and I use the wc to count the file, undesirably wc requested the standard input rather than my file "-l" ,although I use it through the commandwc -lw -lit didn't work as my will, however, linux itself do not limit this kind of name style, but wc does, so
2015-10-06 10:01:15 -0600, Eric Blake:
> tag 21636 notabug
> thanks
>
> On 10/06/2015 04:49 AM, JameDam wrote:
> > I have a file which is named *“-l”*, and I use the wc to count the file,
> > undesirably wc requested the standard input rather than my file *"-l"*
> > ,although
> > I use it
tag 21636 notabug
thanks
On 10/06/2015 04:49 AM, JameDam wrote:
> I have a file which is named *“-l”*, and I use the wc to count the file,
> undesirably wc requested the standard input rather than my file *"-l"*
> ,although
> I use it through the command
> */wc -lw -l/*
Try either of:
wc -lw