I would like to use xargs to run a command on a number of files where the output from the command has a different file extension. For the example below I am using echo
as a dummy command.
ls *.las | xargs -I % -n1 -P 10 echo $(basename % .las).ply
this produces the output
ID1.las.ply
ID2.las.ply
ID3.las.ply
This does not strip the .las
and only adds the new .ply
file extension. What I would like is:
ID1.ply
ID2.ply
ID3.ply