Try this: sed 's/[[:blank:]]*%[^'\'']*$//'. This removes line-ending comments, only if the comment text does not contain a single quote.
確定! 回上一頁