Advertisement
Xioth

Bash - TD1 - listebranch.sh

Jan 25th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. path=$(pwd)
  4.  
  5. echo $path
  6.  
  7. while [ $path != "/" ]
  8. do
  9.     ls $path
  10.     cd ..
  11.     path=$(pwd)
  12.     echo $path
  13. done
  14.  
  15. ls $path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement