The last argument is the filename to pass to sed, which is the file the cp command has just created. using the global flag ( /g), and directly editing the file ( -in-place) rather than outputting to the shell. Replace them with themselves ( \1) followed by a newline ( \n) and the string "StartupWMClass=Google-chrome-stable"Īnd do this to all of them, i.e. Step by step, here's what that sed command says:įind all lines that start with (that's the ^(\ \])$ part - RegExr or Regex101 can explain it much better than I could here :)) If that operation succeeds (
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |