Skip to main content
added 32 characters in body
Source Link
FaxMax
  • 726
  • 1
  • 8
  • 28

and now the sed command matched and deleted the spaces. How can i convert wrong spaces wrong spacesnon-breaking space to normal spaces?

and now the sed command matched and deleted the spaces. How can i convert wrong spaces to normal spaces?

and now the sed command matched and deleted the spaces. How can i convert wrong spaces non-breaking space to normal spaces?

added 423 characters in body
Source Link
FaxMax
  • 726
  • 1
  • 8
  • 28

Update2:

i inserted the sedcommand with [^[:graph:]] but it does not change the out.

for UKWID in 123 456 678; do
    result="$(mysql -r --column-names=0 -e "SELECT String FROM Table WHERE id = $UKWID")"
    echo "$result" | sed 's/^[^[:graph:]]*//;s/[^[:graph:]]*//' | cat -E
done
+stringA +stringB         $
   +stringc +stringx    $
+stringe +stringf      $

Update2:

i inserted the sedcommand with [^[:graph:]] but it does not change the out.

for UKWID in 123 456 678; do
    result="$(mysql -r --column-names=0 -e "SELECT String FROM Table WHERE id = $UKWID")"
    echo "$result" | sed 's/^[^[:graph:]]*//;s/[^[:graph:]]*//' | cat -E
done
+stringA +stringB         $
   +stringc +stringx    $
+stringe +stringf      $
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267
added 1086 characters in body
Source Link
FaxMax
  • 726
  • 1
  • 8
  • 28
Loading
added 803 characters in body
Source Link
FaxMax
  • 726
  • 1
  • 8
  • 28
Loading
Source Link
FaxMax
  • 726
  • 1
  • 8
  • 28
Loading