I have file.txt where I have values in format:
text1
text2
text3
Anyone have the idea to open such a file in a script and modify it to
'text1','text2','text3'
so far i have done it manually in notepad++ but i'd rather put it in some script just don't know how:
first step:
find what: ^|$
replace with: '
and
second step:
find what: [\r\n]+
replace with: ,
findstr, which isn't helpful here). When you don't want to switch to another language (for example PowerShell) and are willing to use a third-party tool, I recommend jrepl