wc -l

 3 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Srini Rao
Veteran Member Send Private Message
Posts: 149
Veteran Member

Hello - I need to find the line count for a text file process flow.

 

I used the syscommand node and used the following command,

 

wc -l filename.txt.

 

I tried the execution mode as run cmd.exe and automatic. We are on Windows.

 

It fails with following error..

 Executing System Command Activity SysCommand9810...
Full system command: cmd.exe /C wc -l  D:\Interface\Srini.TXT
Command output (combined): 'wc' is not recognized as an internal or external command,
operable program or batch file.
Command error output: 'wc' is not recognized as an internal or external command,
operable program or batch file.
SysCommand9810_errorOutput = 'wc' is not recognized as an internal or external command,
operable program or batch file.

 

Please Advise

Ari
Veteran Member Send Private Message
Posts: 49
Veteran Member
Assuming you are using LUU: wc.exe does not come with LUU

You need to install SUA Utilities and then get it from the SUA\common directory or as a UNIX command from the SUA\bin directory
Srini Rao
Veteran Member Send Private Message
Posts: 149
Veteran Member
Do we have equivalent command in LUU?
Ari
Veteran Member Send Private Message
Posts: 49
Veteran Member
No, but you could use the DOS find command this way: TYPE D:\Interface\Srini.TXT | FIND /c /v""