79272872

Date: 2024-12-11 19:00:55
Score: 0.5
Natty:
Report link

If someone is editing a Korn (ksh) script this might be the pattern you seek:

printf '%s\n' "${variableWithTabs//[[:blank:]]/}" 
# or 
variable_withoutTabs="${variable_withTabs//[[:blank:]]/}" 

According to this page there is a tab ([[:tab:]]), but that didn't work on the Korn shell where I tested.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: JamesIsIn