The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
echo ${PWD#${PWD%/*/*}/}
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
echo ${PWD#${PWD%/*/*}/}
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-16-2008
Tytalus
echo {1..9}^2\;|bc
Join Date: Jun 2003
Location: Scotland
Posts: 431
Have a look at:
Bash Reference Manual
and here,
Code:
echo ${PWD#${PWD%/*/*}/} is echo ${PWD#
X
/} where
X
= ${PWD%/*/*} i.e it's a split in a split....
Tytalus
View Public Profile
Find all posts by Tytalus
Find Tytalus's past nominations received
Find Tytalus's present nominations given