I am trying to make new enteries in a csv file in new column but am not able to do so.Please help for the same.
There are multiple directories & within those directories i have sub-directories and i want to build a csv file with 2 columns of Directories mapped to their sub-directories. Can you please help me with this. I tried the following code:
ls ~/Parent/ | cut -c1-9 > ~/test_111.csv
while read Child
for (( c=1; c<=5; c++ ))
sed -i ci"$Entry" test_222.csv
done < test_111.csv
Basically i want two columns of csv file , First column should have Child name & Second cloumn should have Sub-Directory name inside PQR Directory.
Any help will be useful on this.
Thanks in Advance!