your_script -d '\|' foo bar #### /\|/ #### foo:bar;baz;blork blix etc foo2:bar3;bazx;blrk blx and-so-on #### your_script -d '[:; ]' that.file