ターミナル作業 sedで一括でバックアップファイルを作成

$ ls -la
total 0
drwxr-xr-x   5 teru1  staff  170  1 21 20:40 .
drwx------+ 16 teru1  staff  544  1 20 21:56 ..
-rw-r--r--   1 teru1  staff    0  1 21 19:09 aaa.sh
-rw-r--r--   1 teru1  staff    0  1 21 19:09 bbb.sh
-rw-r--r--   1 teru1  staff    0  1 21 19:09 ccc.sh
$ mkdir BK; ls -1 *.sh | sed 's/.*.sh/cp & `pwd`\/BK\/&.BK/' > backupExec; sh backupExec && rm -f backupExec
terubookAir:shell teru1$ ls -la
total 0
drwxr-xr-x   6 teru1  staff  204  1 21 20:41 .
drwx------+ 16 teru1  staff  544  1 20 21:56 ..
drwxr-xr-x   5 teru1  staff  170  1 21 20:41 BK
-rw-r--r--   1 teru1  staff    0  1 21 19:09 aaa.sh
-rw-r--r--   1 teru1  staff    0  1 21 19:09 bbb.sh
-rw-r--r--   1 teru1  staff    0  1 21 19:09 ccc.sh
$ ls -la BK
total 0
drwxr-xr-x  5 teru1  staff  170  1 21 20:41 .
drwxr-xr-x  6 teru1  staff  204  1 21 20:41 ..
-rw-r--r--  1 teru1  staff    0  1 21 20:41 aaa.sh.BK
-rw-r--r--  1 teru1  staff    0  1 21 20:41 bbb.sh.BK
-rw-r--r--  1 teru1  staff    0  1 21 20:41 ccc.sh.BK