regex in Azure databrick notebook

%3CLINGO-SUB%20id%3D%22lingo-sub-2481349%22%20slang%3D%22en-US%22%3Eregex%20in%20Azure%20databrick%20notebook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2481349%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%3CBR%20%2F%3EIn%20Databricks%20using%20Python%20can%20you%20please%20let%20me%20know%20how%20to%20read%20a%20file%20and%20grep%20on%20a%20pattern%20and%20write%20the%20result%20to%20another%20file.%20Please%20assist%20if%20there%20is%20any%20sample%20code.%3C%2FP%3E%3CP%3EI%20appreciate%20your%20time%20and%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hello Everyone,
In Databricks using Python can you please let me know how to read a file and grep on a pattern and write the result to another file. Please assist if there is any sample code.

I appreciate your time and help.

0 Replies