목록Shell Script (1)
행복아울렛
[UNIX/LINUX] Shell Script for changing all string in a directory recursivly!
A Shell Script For Changing Oldstring to NewString in a directory recursively. This code, which we will call ach(All Change), finds all files whose extension is one of .c, .h, .s .cpp and contain the OldString. And It Chanes OldString to New String in one breath. It's very useful! USAGE: $ach oldstring newstring REQUIREMENTS: vim6.0 or above sed grep CODE: #!/bin/sh # Check parameters if [ "$#" ..
Programming
2007. 1. 5. 09:25