Hallp ch brauche hilfe, in variable bestimmte text finden und ausschneiden! in #!/bin/bash
z.b
1 2 | txt0="${bred}[ Stop ] ${bwhi}System Stop!${norm}\n" txt1="%s${bred}[ Error ] E0x01 ${bwhi}File ${bgre}$file${bwhi} not exist.${norm}\n" |
wenn in text ist, z.b ${bred}, ${norm,} oder ähnliche variable ist, ausschneiden,, so das nir text bleibt
In ${bred} ${norm,} oder andere variable, handelt sich um Color /033[1;..m
Die Neu Wariable soll so aussehen
1 2 | txt0="[ Stop ] System Stop" txt1="[Error ] E0x01 File $file$ not exist." |