Skip to tool

C Shell Partition at last separator Online

Split into (before, separator, after) at last separator.

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

Worked example

The three values are the text before the separator, the separator, and the text after it. If absent, the original text is last.

Separator
"/"
Sample input
manuals.plus/docs
Sample output
["manuals.plus","/","docs"]

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