The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-07-2008
jehrome_rando jehrome_rando is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 6
String manipulation in TCL

Suppose pwd=/home/user/work/wip1

How to output the "pwd string" into 5 chunks?

/home/user/work/wip1
/home/user/work
/home/user
/home
/