Skip to tool

C Shell Trim Online

Trim leading and trailing whitespace or chosen characters.

The output updates as you type. The tool processes input in your browser.

Worked example

A custom trim set removes the listed characters from the boundaries while preserving them inside the string.

Chars to trim (optional)
""
Sample input
   manuals plus   
Sample output
manuals plus

Using this operation in C Shell

The interactive result uses JavaScript. Use quoting to keep argument boundaries intact. An external command such as awk, sed, or tr supplies operations beyond shell expansion.

C Shell reference