This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Modify Text File - replace newline characters
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 15, 2008
01:49 PM
Modify Text File - replace newline characters
Hello all,
I'm new to IA. This is my first post.
I am calling the execute command and storing the process's stdout in an IA variable $EXECUTE_STDOUT$.
My goal is to execute a Modify Text File action, and replace some string in a text file with part of the string contained in the variable $EXECUTE_STDOUT$.
I believe that the custom variable includes a newline character in it. Is there a way to strip out the newline character from this variable so that when I do a string replacement, my final text file will not contain this extra character?
Thanks-
I'm new to IA. This is my first post.
I am calling the execute command and storing the process's stdout in an IA variable $EXECUTE_STDOUT$.
My goal is to execute a Modify Text File action, and replace some string in a text file with part of the string contained in the variable $EXECUTE_STDOUT$.
I believe that the custom variable includes a newline character in it. Is there a way to strip out the newline character from this variable so that when I do a string replacement, my final text file will not contain this extra character?
Thanks-
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 15, 2008
08:32 PM
Not using the Modify Text File task, no.
Sounds like you will need to write a custom action that occurs after the command execution and before the Modify Text File task to have some Java code do this work for you.
It will of course have to reset the variable content with the new value.
Sounds like you will need to write a custom action that occurs after the command execution and before the Modify Text File task to have some Java code do this work for you.
It will of course have to reset the variable content with the new value.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)