Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lmm8294
  • Content: Threads
  • Order by date
  1. lmm8294

    last three level of `pwd`

    I need to modify the .profile of an account, and I have this line in the .profile: PS1=`hostname`':$LOGNAME:$PWD>' But my boss want me to get only the last 3 levels of the subdirectory if `pwd` returns a long path. For example, if `pwd` returns...
  2. lmm8294

    Need to get last 3 layer of the current directory

    I need to modify the .profile of an account, and I have this line in the .profile: PS1=`hostname`':$LOGNAME:$PWD>' But my boss want me to get only the last 3 levels of the subdirectory if `pwd` returns a long path. For example, if `pwd` returns...
  3. lmm8294

    Is there any way to get the last several subdirectories of `pwd`?

    I need to modify the .profile of an account, and I have this line in the .profile: PS1=`hostname`':$LOGNAME:$PWD>' But my boss want me to get only the last 3 levels of the subdirectory if `pwd` returns a long path. For example, if `pwd` returns...

Part and Inventory Search

Back
Top