I have the below code which has to do a recursive listing of all the files and directories.
I am not sure if it is working fine.
#!/usr/bin/sh
recur_fun()
{
for i in `ls -ltr | awk '{print $9}'`
do
echo $i;
cd $i;
ls
pwd
recur_fun
cd ..
pwd
done
}
recur_fun
I need to copy the name of the file and then use it in clearcase.
I suggest replacing this with:
find . -print