Linux command grep with tSystem component on TOS DI

Six Stars

Linux command grep with tSystem component on TOS DI

Hi,

 

I would like to use tSystem component to execute linux command, grep, to find 'Hello' in my files content.

 

When i run my job, grep command don't use my search on "Hello"

 

What's wrong ?

Thanks

 

grep1.pnggrep2.png


Accepted Solutions
Thirteen Stars

Re: Linux command grep with tSystem component on TOS DI


All Replies
Thirteen Stars

Re: Linux command grep with tSystem component on TOS DI

Thirteen Stars

Re: Linux command grep with tSystem component on TOS DI

@arnaudbroens can you try with below command.

"grep -l "Hello" * "

Manohar B
Six Stars

Re: Linux command grep with tSystem component on TOS DI

Thanks @manodwhb

 

I read this post below but i make an error syntax. 

Thirteen Stars

Re: Linux command grep with tSystem component on TOS DI

@arnaudbroens,can you try with below,should work.

 

"grep -l 'Hello' " or "grep -l Hello "

Manohar B

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.