Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
vincecassel
Contributor III
Contributor III

tSystem doesn't work

Hi everybody,

I am using Talend 7.1.1 Big Data and I have to change the name of the catalogue files on my repository (/tmp/) with a standard name (removing the number of the version):

I used this command in my ubuntu machine and it works:

Spoiler
for f in /tmp/*catalogue_v*; do a=$(echo $(echo $f |sed 's/catalogue_v.*//')"catalogue"); cp "$f" "$a"; done;

I tried to put that command with " cmd /c " at the begginning of the string and I tried to put "use array command" too, but they don't work.

The error is: "f not expected"

 

Does anybody know how can I solve my problem?

 

Regards

Labels (2)
2 Replies
manodwhb
Champion II
Champion II

@vincecassel , can you show your tsystem component screenshot.

 

and check the below link.

https://community.talend.com/t5/Design-and-Development/Executing-a-Linux-command-with-a-pipe-using-a...

 

vincecassel
Contributor III
Contributor III
Author

I tried using new sting []{} but it gives my sintax problem (cannot convert a string to string).

The screenshot is the following:

0683p000009MaCK.jpg