[find][grep] find all c file and grep specific word Posted by Computer Newbie on 晚上11:55 in bash script, Linux, Ubuntu / No comments [find][grep] find all c file and grep specific word find . -name *.c -print | xargs grep "Keyword" Reference: How To Find Files by Content Under UNIX Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook Related Posts:[bash] kill process id by search process name ps -ax | grep geany | awk ‘{print “kill -9 ” $1}’ | sh kill -9 ps -ax | grep gedit | awk '{print $1}' Reference: How to get PID of process by sp… Read More[Bash] One line command have if else id=`ls /sys/class/net | grep wan0`; if [ $id != "" ]; then echo 1 > /tmp/a; echo $id; else echo 0 > /tmp/a; echo $id; fi Reference: Run mult… Read More[Reinstall][Ubuntu] Computer reinstall && quick install the tool script at Ubuntu 10.04#/bin/bash # apt-get --yes --force-yes install $something # apt-get --yes install $something Skype_source_list="deb http://download.skype.com/linux/… Read More[GitHub] How to upload the code to github[GitHub] How to upload the code to github First : Make sure the key have post github websit. Step 1: Check for SSH keys cd ~/.ssh Step 2: Gene… Read More[ssh][ubuntu] Send command to Remote Machine by using sshhappy@happy-laptop:~$ ssh root@192.168.0.1 'ls -l' root@192.168.0.1's password: 總計 120 -rwxrwxrwx. 1 root root 1706 2012-09-13 19:56 anaconda-ks.cfg… Read More
0 意見:
張貼留言