Hi there, my first post, so you might find my noobness
I need help to fix a thing,
find /mnt/fs01/gfx/ -iname "*.rar" > gfx.txt
Gives this contained textfile:
/mnt/fs01/gfx/toba/toba.rar
/mnt/fs01/gfx/zeta/zimba.rar
/mnt/fs01/gfx/brashe/getha.rar
And now the tricky part (for me as well) comes, I want to edit the file to remove everything behind the last "/", so it isn't point out the rar-file itself, and replace it with " 1" like:
/mnt/fs01/gfx/toba/ 1
/mnt/fs01/gfx/zeta/ 1
/mnt/fs01/gfx/brashe/ 1
The thing is that I will call another script and loop through this one, and this script needs the path and a "1" behind the path.
Anyone have an idea how to solve this?
Regards