filePath="dir01/basenameVal.log"
echo "$(dirname "$filePath")"
echo "$(basename "$filePath")"
echo "
[current pwd]:" && pwd
echo "
[ls]:" && ls
cd ./csharp
echo "
After cd ./csharp [current pwd]:" && pwd
echo "
After cd ./csharp [ls]:" && ls
echo '
[ls | grep ".csproj"]:]' && ls | grep ".csproj"
touch include.log
echo "src/PerformanceDMS.Utility.WellTestingPerfAnalyzer.csproj" >> include.log
echo "test/PerformanceDMS.Utility.WellTestingPerfAnalyzer.Test.csproj" >> include.log
echo "
[cat include.log]:" && cat include.log
echo '
[while read]:'
while read -r line
do
echo "$(dirname "$line")"
mkdir -p "$(dirname "$line")"
echo "$(basename "$line")"
mv "$(basename "$line")" "$(dirname "$line")"
done < include.log
echo "
After while_read [ls -l]:"
ls -l