Now, here comes the real magic:
Imagine you have a whole lot of files in a directory ( all about Sue ) and you want the same command to do all those files in one go because she/he is standing right at the door . .
Remember the find command ? We will combine the two:
CODE
$ find /home/bruno/old-friends -type f -exec sed -i 's/ugly/beautiful/g' {} \;
Imagine you have a whole lot of files in a directory ( all about Sue ) and you want the same command to do all those files in one go because she/he is standing right at the door . .
Remember the find command ? We will combine the two:
CODE
$ find /home/bruno/old-friends -type f -exec sed -i 's/ugly/beautiful/g' {} \;
'[IT] 리눅스' 카테고리의 다른 글
[LINUX] 프락시(Proxy) 서버 설정 (0) | 2017.01.07 |
---|---|
[LINUX] Crontab을 통한 메일 발송 (0) | 2016.10.26 |
VI에서 UTF-8 BOM 제거법 (0) | 2016.05.19 |
[LINUX] RHEL vm.nr_hugepages 값 설정 (0) | 2016.04.21 |
[LINUX] 대용량 데이터 처리 시스템을 위한 Linux 메모리 설정 (0) | 2016.04.20 |