soswera.blogg.se

Notepad++ remove blank lines from text file
Notepad++ remove blank lines from text file







For instance, IBM's cfg file is quite big and not needed for simple models you can also delete all commentary lines (lines starting with #). A number of other settings are set in this script, though, for your convenience the TM1 logging directory is part of the TM1 data directory, and is called "Logs", unless you choose the logging directory yourself there is only 1 folder for the TM1 data directory the config file for TM1 is not necessarily part of the TM1 data directory the tm1s.cfg file can be created/updated when asked to browse to a folder, browse to the folder containing the tm1s.cfg file TOOL | Alt-F12 | ! | (Windows Explorer) create a shortcut to run a TM1 model as an application Tm1s-original.txt (21.46 KiB) Downloaded 39 times tm1s-produced.txt (1.91 KiB) Downloaded 36 timesĬode: Select all The idea is to get rid of the empty lines too. The result it the new file, which will contain new lines near the bottom. The full script basically manipulates the 'original' file, adds / changes / removes information. I add the 2 files, original and new, but I had to change the extension of cfg into txt to have it uploaded. StringTrimLeft, all, all, 2 Removes first `r`n line If ((tmp!="#" ) and (tmp!="")) if line doesn't start with # and isn't null If( tmp != "#" ) If this line isn't starting with character Msgbox, 4, Confirm, Do you want to delete all lines in the tm1s.cfg file that start with an # or are blank/empty?









Notepad++ remove blank lines from text file