cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

Text transformation and line editing for text files

It would be very useful to pipe "Get file content" data through at least a limited set of text transformation and edting actions. For instance you may want to delete the first two lines, or insert a couple of lines at the beginning of files prior to converting to PDF. A simple string substitution, evaluated on each line of text. A few lines of text appended to the end of the file content.

 

With the addition of some kind of flexible expression language (say, Regular Expressions), it could also be made to do some fairly neat tricks like filtering out entire lines that contain certain keywords.

 

Relatedly, these functions would probably do it if you could apply to lines of files in pipeline (instead of just variables): https://powerusers.microsoft.com/t5/Flow-Ideas/Text-Transform-Functions/idi-p/25542

Status: New