Last Updated: February 25, 2016
·
240
· diegocaridei

List of file and directory

#!/bin/bash
#author Diego Caridei
clear
>  ~/Desktop/file.txt
while [ "$PWD" !=  "/" ]; do
 ls >> ~/Desktop/file.txt
  cd ..
done
echo fine