Hi Andres,
If you try running the following on the command line
i=0
echo "(~/Desktop/PRJEB0000/maps/$i)"
Then you'll get
(~/Desktop/PRJEB0000/maps/0)
Now, if you run
i=0
echo "~/Desktop/PRJEB0000/maps/$i"
Then you'll get
~/Desktop/PRJEB0000/maps/0
Rather, you probably want
split_libraries.py -m ~/Desktop/PRJEB0000/maps/$i.map.txt \
-f ~/Desktop/PRJEB0000/fnas/$i.fna \
...
This will require a bit of tinkering - but fortunately, these can all be tested directly on the command line.
And yes, it'll only increment $x. But to double check this, try running
echo $x
Cheers,
Jamie