I want to convert .tbl
files to .csv
in /data/
directory which I've got read-only access.
I'm using this command:
for i in `ls *.tbl`; do
sed 's/|$//' $i > ${i/tbl/csv}
echo $i
done
But I'm getting:
-bash: supplier.csv: Permission denied
And I don't know how to change the script such that it could save the output in a writable directory. Any idea how to solve it?