J
jimmymj
Many files in a directory need to be changed with appending _dev.
for example,
inv_detail.sh inv_hist.sh change to inv_dev_detail.sh,
inv_dev_hist.sh and move to /opt/ies/dev/ directory.
Here is my linux command but it won't work. would you mind help me to fix my linux command;
find . -name "*.sh" -type f -print0 | sed -s 's/inv/inv_del/g' | xargs -0 -n2 mv /opt/ies/dev/
but i have an error message; inv_dev_detail.sh is not directory
many thanks in advance
Continue reading...
for example,
inv_detail.sh inv_hist.sh change to inv_dev_detail.sh,
inv_dev_hist.sh and move to /opt/ies/dev/ directory.
Here is my linux command but it won't work. would you mind help me to fix my linux command;
find . -name "*.sh" -type f -print0 | sed -s 's/inv/inv_del/g' | xargs -0 -n2 mv /opt/ies/dev/
but i have an error message; inv_dev_detail.sh is not directory
many thanks in advance
Continue reading...