[Sed] Delete specific word in all files Posted by Computer Newbie on 晚上11:40 in Linux, sed / No comments find . -name "*.c" -exec sed -e '/HAPpy/d' -i {} \; Reference: How to use find, -exec, grep, and sed with regular expression to replace part of a line of text? Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook Related Posts:[sudo][ubuntu] sudo don't need to input password[sudo][ubuntu] sudo don't need to input password vim /etc/sudoers Add the following command into it. username ALL=(ALL) NOPASSWD: ALLexample:My user… Read More[Linux][Kernel introduce] System Call [Linux][Kernel introduce] System Call 1. Process Management : build up new process , query information , debug. 2. Signal &nb… Read More[Linux][Bash script] Redirecting standard output and standard error [Linux][Bash script] Redirecting standard output and standard error 3.6.4 Redirecting Standard Output and Standard Error This construct allows… Read More[vim][Linux] How to find and replace by using vim[vim][Linux] How to find and replace by using vim :%s/awesome/wonderful/gcreplace with wonderful (y/n/a/q/l/^E/^Y)?If string is /var/tmp/ and want to … Read More[code][Embedded System] How to print log into file[code][Embedded System] How to print log into file This is a example code : snprintf(buf, sizeof(buf), "rm -rf %s/files.db %s/art_cache", db_path, d… Read More
0 意見:
張貼留言