79251732

Date: 2024-12-04 15:16:09
Score: 0.5
Natty:
Report link

I know that the question wants to avoid using awk... however there is a very elegant one-liner to do it:

trim_path=$(echo "$path" | awk '$1=$1')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Martín Zaragoza