wc -l

 3 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Srini Rao
Veteran Member
Posts: 149
Veteran Member
New Poster
New Poster
Congrats on posting!

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
Posts: 49
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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
Posts: 149
Veteran Member
New Poster
New Poster
Congrats on posting!
Do we have equivalent command in LUU?
Ari
Veteran Member
Posts: 49
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
No, but you could use the DOS find command this way: TYPE D:\Interface\Srini.TXT | FIND /c /v""