I have a shared folder in Windows which has a file. I want to write a shell script in Linux to open that file and manipulate it. Can that be done directly?
Here's what I have tried but it didn't work:
#!/bin/sh
file="file:///\\Home\Folder\File.txt"
for i in `cat $file`
do
echo $i
done;
I read somewhere that I first need to mount the Windows path, enter my username and password, then read the file. Is this the only way to do so?