The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Double Substitution variables in ksh
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Double Substitution variables in ksh
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
05-16-2007
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,718
Quote:
Originally Posted by
xiamin
I was wundering if we could do that in one line
Code:
i=/test/test1/test2/myfile.cd.070505123457 ; test=${i##*/} ; test=${test%.*}
Sorry, I couldn't resist...
Perderabo
View Public Profile
Find all posts by Perderabo