문제

From

abcd_if_vb.c
abcd_if_av.c

to

edfg_if_vb.c
edfg_if_av.c

The problem is to catch what file have abcd prefix.

도움이 되었습니까?

해결책

Not really.

for file in abcd*
do
  mv "$file" "edfg${file#abcd}"
done

다른 팁

If you have rename, you can rename those files using

rename abcd_ edfg_ abcd*
ls -1 abcd*|awk '{f=$0;gsub(f,"abcd","efgh");system("mv "$0" "f);}'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top