[lake@galaxy share]$ grep lhu3 * -R
qemu/firmware/60-edk2-arm.json: "filename": "/home/lhu3/usr/share/qemu/edk2-arm-code.fd",
qemu/firmware/60-edk2-arm.json: "filename": "/home/lhu3/usr/share/qemu/edk2-arm-vars.fd",
qemu/firmware/60-edk2-aarch64.json: "filename": "/home/lhu3/usr/share/qemu/edk2-aarch64-code.fd",
qemu/firmware/60-edk2-aarch64.json: "filename": "/home/lhu3/usr/share/qemu/edk2-arm-vars.fd",
qemu/firmware/50-edk2-x86_64-secure.json: "filename": "/home/lhu3/usr/share/qemu/edk2-x86_64-secure-code.fd",
qemu/firmware/50-edk2-x86_64-secure.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-vars.fd",
qemu/firmware/60-edk2-i386.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-code.fd",
qemu/firmware/60-edk2-i386.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-vars.fd",
qemu/firmware/60-edk2-x86_64.json: "filename": "/home/lhu3/usr/share/qemu/edk2-x86_64-code.fd",
qemu/firmware/60-edk2-x86_64.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-vars.fd",
qemu/firmware/50-edk2-i386-secure.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-secure-code.fd",
qemu/firmware/50-edk2-i386-secure.json: "filename": "/home/lhu3/usr/share/qemu/edk2-i386-vars.fd",
[lake@galaxy share]$ cd qemu/firmware/
[lake@galaxy firmware]$ ls
50-edk2-i386-secure.json 60-edk2-aarch64.json 60-edk2-i386.json
50-edk2-x86_64-secure.json 60-edk2-arm.json 60-edk2-x86_64.json
[lake@galaxy firmware]$ sed -i 's/lhu3/lake/' *
[lake@galaxy firmware]$ grep lhu3 * -R
[lake@galaxy firmware]$ grep lake * -R
50-edk2-i386-secure.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-secure-code.fd",
50-edk2-i386-secure.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-vars.fd",
50-edk2-x86_64-secure.json: "filename": "/home/lake/usr/share/qemu/edk2-x86_64-secure-code.fd",
50-edk2-x86_64-secure.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-vars.fd",
60-edk2-aarch64.json: "filename": "/home/lake/usr/share/qemu/edk2-aarch64-code.fd",
60-edk2-aarch64.json: "filename": "/home/lake/usr/share/qemu/edk2-arm-vars.fd",
60-edk2-arm.json: "filename": "/home/lake/usr/share/qemu/edk2-arm-code.fd",
60-edk2-arm.json: "filename": "/home/lake/usr/share/qemu/edk2-arm-vars.fd",
60-edk2-i386.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-code.fd",
60-edk2-i386.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-vars.fd",
60-edk2-x86_64.json: "filename": "/home/lake/usr/share/qemu/edk2-x86_64-code.fd",
60-edk2-x86_64.json: "filename": "/home/lake/usr/share/qemu/edk2-i386-vars.fd",
[lake@galaxy firmware]$
sed command line Shell: sed -i ‘s/lhu3/lake/‘ *
最新推荐文章于 2023-07-03 22:18:23 发布