i am moving old file from folder to archive file by this command
ls -rt | grep -v '^archive$' | sed '$d' | xargs -I{} mv {} archive
can I add .orig extension to all file and then move into archive folder.
Where would be adjectly I place my syntex.
i am moving old file from folder to archive file by this command
ls -rt | grep -v '^archive$' | sed '$d' | xargs -I{} mv {} archive
can I add .orig extension to all file and then move into archive folder.
Where would be adjectly I place my syntex.
ls -rt | grep -v '^archive$' | sed '$d' | xargs -I{} mv {} archive/{}.orig
I guess archive is the folder, then just add "/{}.orig" in the end