skip to main
|
skip to sidebar
Tips and Tricks on programming
C, C++, Unix, Linux, Perl, PHP, MySql, Postgres and Oracle.
Aug 11, 2009
Bach shell SPLIT
x='A:B:C';
echo ${x%:*};
output - A:B
echo ${x#*:};
output - B
:C
echo $x;
A:B:C
x=${x% *};
echo ${x% *};
output -
A
Newer Post
Older Post
Home
Labels
Linux
(22)
Perl
(6)
Unix
(22)
Vi Editor
(4)
The D@rk Kn!ght
View my complete profile