Download nhạc từ các trang nhạc lớn của Việt Nam

30 Tháng Mười 2006
@ 07:58
(Được đăng bởi: Phạm Đức Hải)
Nguồn : Some examples of using UNIX find command.
Introduction

The find command allows the Unix user to process a set of files and/or directories in a file subtree.

You can specify the following:

  • where to search (pathname)
  • what type of file to search for (-type: directories, data files, links)
  • how to process the files (-exec: run a process against a selected file)
  • the name of the file(s) (-name)
  • perform logical operations on selections (-o and -a)
Search for file with a specific name in a set of files (-name)
find . -name "rc.conf" -print

This command will search in the current directory and all sub directories for a file named rc.conf.

Note: The -print option will print out the path of any file that is found with that name. In general -print wil print out the path of any file that meets the find criteria.

How to apply a unix command to a set of file (-exec).
find . -name "rc.conf" -exec chmod o+r '{}' \;

This command will search in the current directory and all sub directories. All files named rc.conf will be processed by the chmod -o+r command. The argument '{}' inserts each found file into the chmod command line. The \; argument indicates the exec command line has ended.

The end results of this command is all rc.conf files have the other permissions set to read access (if the operator is the owner of the file).

How to apply a complex selection of files (-o and -a).
find /usr/src -not \( -name "*,v" -o -name ".*,v" \) '{}' \; -print

This command will search in the /usr/src directory and all sub directories. All files that are of the form '*,v' and '.*,v' are excluded. Important arguments to note are:

  • -not means the negation of the expression that follows
  • \( means the start of a complex expression.
  • \) means the end of a complex expression.
  • -o means a logical or of a complex expression.
    In this case the complex expression is all files like '*,v' or '.*,v'

The above example is shows how to select all file that are not part of the RCS system. This is important when you want go through a source tree and modify all the source files... but ... you don't want to affect the RCS version control files.

How to search for a string in a selection of files (-exec grep ...).
find . -exec grep "www.ajaxviet.com" '{}' \; -print

This command will search in the current directory and all sub directories. All files that contain the string will have their path printed to standard output.

If you want to just find each file then pass it on for processing use the -q grep option. This finds the first occurrance of the search string. It then signals success to find and find continues searching for more files.

find . -exec grep -q "www.ajaxviet.com" '{}' \; -print

This command is very important for process a series of files that contain a specific string. You can then process each file appropriately. An example is find all html files with the string "www.athabascau.ca". You can then process the files with a sed script to change those occurrances of "www.athabascau.ca" with "intra.athabascau.ca".

Ý kiến [0] - Chuyên mục: Linux

Referred by:
search file script not using find (www.google.com.vn) [Referral]
find command + linux (www.google.com.vn) [Referral]
Linux find command find java or (www.google.com.vn) [Referral]
find exec (www.google.com.vn) [Referral]
ubuntu using find command (www.google.com.vn) [Referral]
find content in file unix command (www.google.com.vn) [Referral]
linux command+find+print out path (www.google.com.vn) [Referral]
linux command find sub (www.google.com.vn) [Referral]
find command content file php linux (www.google.com.vn) [Referral]
find man command (www.google.com.vn) [Referral]
finding some blog (www.google.com.vn) [Referral]
unix blog (www.google.com.vn) [Referral]
find command directory in Ubuntu (www.google.com.vn) [Referral]
command in unix (www.google.com.vn) [Referral]
find directory path unix (www.google.com.vn) [Referral]
command find (www.google.com.vn) [Referral]
search a string in all find by command on Linux (www.google.com.vn) [Referral]
find command ubuntu (www.google.com.vn) [Referral]
"{} \;" + "find command" (www.google.com.vn) [Referral]
Linux command + find + grep (www.google.com.vn) [Referral]
"\;" + "find command" + "indicates" (www.google.com.vn) [Referral]
"\;" + "indicates" + "exec" + "ended" (www.google.com.vn) [Referral]
linux find file in sub directory (www.google.com.vn) [Referral]
exsample command get path directory SQLserver 2000 (www.google.com.vn) [Referral]
command find (www.google.com.vn) [Referral]
use comments in unix (www.google.com.vn) [Referral]
comand grep linux (www.google.com.vn) [Referral]
unix how to search content in file (www.google.com.vn) [Referral]
linux command + search command (www.google.com.vn) [Referral]
tìm kiếm với find command (www.google.com.vn) [Referral]
sed (www.google.com.vn) [Referral]
search " in file + UNIX (www.google.co.in) [Referral]
find command (www.google.com.vn) [Referral]
how to use find command on ubuntu (www.google.com.vn) [Referral]
unix directory find search (www.google.com.vn) [Referral]
find command (www.google.com.vn) [Referral]
find command (www.google.com.vn) [Referral]
linux command (www.google.com.vn) [Referral]
search file content in linux grep find (www.google.com.vn) [Referral]
find command (www.google.com.vn) [Referral]
some blog (www.google.com.vn) [Referral]
linux find command logical or (www.google.com) [Referral]
command exec linux (www.google.com.vn) [Referral]
joomla unix path (www.google.com.vn) [Referral]
sql server command line for unix (www.google.com.vn) [Referral]
linux command compare string example (www.google.com.vn) [Referral]
LlyKil $command (www.google.com.vn) [Referral]
Comand Unix (www.google.com.vn) [Referral]
guru.net.vn find command (www.google.com.vn) [Referral]
how to use find command (www.google.com.vn) [Referral]
linux find command example exec grep (www.google.com.vn) [Referral]
"unix"+"find file" (www.google.com.my) [Referral]
LINUX FIND COMMAND to find file content (www.google.com.vn) [Referral]
Searchwww giaitri.com (www.google.de) [Referral]
using find command linux (www.google.com.vn) [Referral]
how to set classpath in unix (www.google.com.vn) [Referral]
guru unix (www.google.com.vn) [Referral]
find command (www.google.com.vn) [Referral]
grep find search file content linux (www.google.com.vn) [Referral]
command linux example (www.google.com.vn) [Referral]
example find and grep command (www.google.com.vn) [Referral]
window+find+java+example (www.google.com.vn) [Referral]
find "file content" unix example (www.google.se) [Referral]
linux commands + find directory (www.google.com.vn) [Referral]
unix process (www.google.com.vn) [Referral]
-n string command linux (www.google.com.vn) [Referral]
linux commend find file (www.google.com.vn) [Referral]
example get command (www.google.com.vn) [Referral]
<!exec unix hackthissite (search.conduit.com) [Referral]
use full linux command with example (www.google.com.vn) [Referral]
grep find in files (www.google.com.vn) [Referral]
find, grep linux command (www.google.com.vn) [Referral]
example command for unix (www.google.com.vn) [Referral]
tìm kiếm file theo nội dung trong unix grep find (www.google.com.vn) [Referral]
linux command find file content (www.google.com.vn) [Referral]
ubuntu find command string example (www.google.fi) [Referral]
UNIX find *.war (www.google.com.sg) [Referral]
linux find command find content (www.google.com.vn) [Referral]
how to use find command (www.google.com.vn) [Referral]
some command linux (www.google.com.vn) [Referral]
linux command find all (www.google.com.vn) [Referral]
classpath in ubuntu (www.google.com.vn) [Referral]
"find command example" (www.google.com.vn) [Referral]
java exec command print (www.google.com.vn) [Referral]
sql commands example (www.google.com.vn) [Referral]
grep command example (www.google.com.vn) [Referral]
complex unix find commands expression (www.google.com) [Referral]
What does the output of this command indicate to the engineers? (www.google.com.vn) [Referral]
grep command (www.google.com.vn) [Referral]
using find sed ubuntu (www.google.com.vn) [Referral]
find unix (vn.search.yahoo.com) [Referral]
google unix command (www.google.com.vn) [Referral]
using unix commands (www.google.com.vn) [Referral]
grep search unix (www.google.com.vn) [Referral]
sed example find a string (www.google.com.vn) [Referral]
linux command finding location of a file (www.google.com.vn) [Referral]
how to set CLASSPATH on ubuntu (www.google.com.vn) [Referral]
linux command compare string file (www.google.com.vn) [Referral]
grep command in unix (www.google.com.vn) [Referral]
unix complex or example "find" (www.google.be) [Referral]
find command (www.google.com.vn) [Referral]
linux find command (www.google.com.vn) [Referral]
demo java by example (www.google.com.vn) [Referral]
command find on mysql (www.google.com.vn) [Referral]
command ubuntu (www.google.com.vn) [Referral]
vi find command string (www.google.com.vn) [Referral]
command ubuntu (www.google.com.vn) [Referral]
unix command finding (www.google.com.vn) [Referral]
using find command linux (www.google.com.vn) [Referral]
sed linux command vietnam (www.google.com.vn) [Referral]
command ubuntu (www.google.com.vn) [Referral]
unix blog (www.google.com.vn) [Referral]
grep command linux (www.google.com.vn) [Referral]
"find command" (www.google.com.vn) [Referral]
"Find Command String" Windows (www.google.com) [Referral]
sed linux command (www.google.com.vn) [Referral]
linux sed examples (www.google.com.vn) [Referral]
find unix (www.google.com.vn) [Referral]
some simple about sed command (www.google.com.vn) [Referral]
find unix command (www.google.com.vn) [Referral]
unix find command logical and (www.google.com) [Referral]
ubuntu how to find command software (www.google.com.vn) [Referral]
search content linux find grep (www.google.com.vn) [Referral]
unix command example (www.google.com.vn) [Referral]
Linux commands (vn.search.yahoo.com) [Referral]
find commnad in unix (www.google.com.vn) [Referral]
grep examples (vn.yhs.search.yahoo.com) [Referral]
unix cmd grep example (www.google.com.vn) [Referral]
example mail + Unix (www.google.com.vn) [Referral]
grep command in linux (www.google.com) [Referral]
example for sed command (www.google.com.vn) [Referral]
linux command find php file (www.google.com.vn) [Referral]
find content in file unix (www.google.com.vn) [Referral]
viet pum.giaitri.com (kr.search.yahoo.com) [Referral]
find command (www.google.com.vn) [Referral]
unix find command expression examples (www.google.com) [Referral]
search string+linux command (www.google.com.vn) [Referral]
find command in linux (www.google.com.vn) [Referral]
command line java unix (www.google.com.vn) [Referral]
execute Java command on PHP (www.google.com.vn) [Referral]
use wireshark to find virus source (www.google.com.vn) [Referral]
tim file theo noi dung linux (www.google.com) [Referral]
linux script regular expresion in find command example (www.google.com) [Referral]
using find command along with grep in unix (www.google.co.in) [Referral]
find command in unix (www.google.co.in) [Referral]
find command in unix (www.google.com) [Referral]
string search using find command (www.google.co.in) [Referral]
commands in unix for using www.google.com (www.google.com.sg) [Referral]
change mode file server using java example (www.google.com.vn) [Referral]
ubuntu find command logical or expression (www.google.cz) [Referral]
how to find a text in all file on ubuntu (www.google.com.vn) [Referral]
find command linux (www.google.com.vn) [Referral]
chmod in java example (www.google.com.vn) [Referral]
execute linux chmod in java example (www.google.com.vn) [Referral]
command change content file .conf (www.google.com.vn) [Referral]
grep command example (www.google.com.vn) [Referral]
find comand example (www.google.com.vn) [Referral]
AT command in java example (www.google.com.vn) [Referral]
command find ubuntu (www.google.com.vn) [Referral]
sed example to read file (www.google.com.vn) [Referral]
find command guru.net.vn (www.google.com.vn) [Referral]
vi command example (www.google.com.vn) [Referral]
some complex examples of using find command (www.google.co.in) [Referral]
How do I search multiple string using grep command (www.google.com.vn) [Referral]
grep find files in folder example (www.google.com.vn) [Referral]
why use source command in unix (www.google.com.vn) [Referral]
command sed (www.google.com.vn) [Referral]
sed command linux (www.google.com.vn) [Referral]
ubuntu find content in text find (www.google.com.vn) [Referral]
change to command on ubuntu (www.google.com.vn) [Referral]
command sed (www.google.com.vn) [Referral]
use the command source in Unix (www.google.com.vn) [Referral]
find command -perm (www.google.com.vn) [Referral]
conmand trong UNIX (www.google.com.vn) [Referral]
command grep in linux (www.google.com.vn) [Referral]
http://www.google.com.vn/ [Referral]
linux command search file content (www.google.com.vn) [Referral]
java use command linux (www.google.com.vn) [Referral]
+"unix command"+"find content" (www.google.com.my) [Referral]
unix command (www.google.com.vn) [Referral]
how to find the command in UNIX (www.google.com.vn) [Referral]
show unix path file java (www.google.com.vn) [Referral]
find all file linux command (www.google.com.vn) [Referral]
find the number of lines of file by using unix commands (www.google.com.vn) [Referral]
"set classpath in unix" (www.google.com) [Referral]
linux search content in file command (www.google.com.vn) [Referral]
unix find command (www.google.com) [Referral]
chmod example (www.google.com.vn) [Referral]
ubuntu search content of file (www.google.com.vn) [Referral]
use AT command in linux (www.google.com.vn) [Referral]
unix cmd (www.google.com.vn) [Referral]
"tim file theo noi dung" (www.google.com.vn) [Referral]
how to use find command in windows (www.google.com.vn) [Referral]
sed + linux + command + sample (www.google.com.vn) [Referral]
net command example (www.google.com.vn) [Referral]
java command with path (www.google.com.vn) [Referral]
grep command (www.google.com.vn) [Referral]
multil search string unix (www.google.com.vn) [Referral]
search files contains string in linux command (www.google.com.vn) [Referral]
grep example to find text in a file (www.google.com.vn) [Referral]
+"chmod in java" (search.yahoo.com) [Referral]
find file unix (www.google.com.vn) [Referral]
ubuntu find command (www.google.com.vn) [Referral]
command sed on linux + sample (www.google.com.vn) [Referral]
find unix (tw.search.yahoo.com) [Referral]
"blog"+"command"+"linux" (www.google.com.vn) [Referral]
find+command (www.google.com.vn) [Referral]
exec a unix file (www.google.com.vn) [Referral]
command print out put string in linux (www.google.com.vn) [Referral]
grep using linux (www.google.com.vn) [Referral]
how to use UNIX server (www.google.com.vn) [Referral]
linux how tu use find command (www.google.com.vn) [Referral]
find file contain string grep find (www.google.com.vn) [Referral]
"find command" "search in file" (www.google.de) [Referral]
ubuntu "find-command" links (se.search.yahoo.com) [Referral]
command find (www.google.com.vn) [Referral]
owner with find command (www.google.com.vn) [Referral]
command find linux (www.google.com.vn) [Referral]
linux find command (www.google.com.vn) [Referral]
command find linux (www.google.com.vn) [Referral]
command ubuntu number of files (www.google.com.vn) [Referral]
use command (www.google.com.vn) [Referral]
what is the find command? (www.google.com.vn) [Referral]
example sed in linux (www.google.com.vn) [Referral]
intext: "Will show your Gravatar icon" (www.google.com.ph) [Referral]
find -size command linux (www.google.com.vn) [Referral]
find content in file unix (www.google.com.vn) [Referral]
search content example (www.google.com.vn) [Referral]
setup path java unix (www.google.com.vn) [Referral]
java exec linux command (www.google.com.vn) [Referral]
command+find (www.google.com.vn) [Referral]
example on find command (www.google.com.vn) [Referral]
example script use command find in Linux (www.google.com.vn) [Referral]
rc.conf example (www.google.com.vn) [Referral]
http://www.yandex.ru/yandsearch?text=unix+find&stype=www [Referral]
what command to search not include sub directories in linux (www.google.com.vn) [Referral]
some example in R (www.google.com.vn) [Referral]
find command unix (www.google.com.vn) [Referral]
unix command (www.google.com.vn) [Referral]
find command example (www.google.com.vn) [Referral]
Google UNIX commands. (www.google.com.vn) [Referral]
find command display line unix (www.google.com.vn) [Referral]
exec() to find file run (www.google.com.vn) [Referral]
Linux command to process string (www.google.com.vn) [Referral]
sed command in linux (www.google.com.vn) [Referral]
grep command linux (www.google.com.vn) [Referral]
sed command (www.google.com.vn) [Referral]
Execute SQL command file from Linux command (www.google.com) [Referral]
linux find command (www.google.com.vn) [Referral]
chmod command linux (www.google.com.vn) [Referral]
grep find string in folder example (www.google.com.vn) [Referral]
find command in linux (www.google.com.vn) [Referral]
command find linux (www.google.com.vn) [Referral]
find command-line (www.google.com.vn) [Referral]
grep command linux (www.google.com.vn) [Referral]
use find comnand to search for *.linux (www.google.com.vn) [Referral]
example about sed command in Linux (www.google.com.vn) [Referral]
search file command line (www.google.com.vn) [Referral]
grep command in unix (www.google.com.vn) [Referral]
select java linux command (www.google.com.vn) [Referral]
command use for uninx (www.google.com.vn) [Referral]
find on linux tim file execute (www.google.com.vn) [Referral]
Some examples of using UNIX find command (www.google.com.vn) [Referral]
find content & find command (www.google.com.vn) [Referral]
using unix command (www.google.com.vn) [Referral]
how to edit file in unix without using vi command (www.google.com.vn) [Referral]
unix find command -ls option (www.google.com) [Referral]
use sql command on unix (www.google.com.vn) [Referral]
find unix (www.google.com.vn) [Referral]
ubuntu command find string in folder (www.google.com.vn) [Referral]
linux +conmand (search.yahoo.com) [Referral]
execute command on server using java (www.google.com.vn) [Referral]
unix grep o + examples (search.yahoo.com) [Referral]
view process by command line in unix (www.google.com.vn) [Referral]
complex selection in unix find command (www.google.com.sg) [Referral]
using unix commands in php (uk.search.yahoo.com) [Referral]
linux "find file content" (www.google.com) [Referral]
find command sub directory (www.google.com.vn) [Referral]
exec-Linux Command examples (www.bing.com) [Referral]
command locate on Linux (www.google.com.vn) [Referral]
vi command example (www.google.com.vn) [Referral]
linux command search string (www.google.com.vn) [Referral]
cmd unix (www.google.com.vn) [Referral]
find command linux (www.google.com.vn) [Referral]
get current process name (www.google.com.vn) [Referral]
search string file using c (www.google.com.vn) [Referral]
sed linux command (www.google.com.vn) [Referral]
find -mtime command (www.google.com.vn) [Referral]
find/exec trong Unix (www.google.ru) [Referral]
unix find text in file (hk.search.yahoo.com) [Referral]
search text in files on unix (www.google.com.vn) [Referral]
"search string unix" (www.google.com) [Referral]
unix : tim file theo size (www.google.com.vn) [Referral]
"find file content" command in linux (www.google.co.in) [Referral]
soft tool use command sql server (www.google.com.vn) [Referral]
comand trong unix (www.google.com.vn) [Referral]
example for Unix server (www.google.com.vn) [Referral]
example for Unix server (www.google.com.vn) [Referral]
csharp "AT Command" check (www.google.com.vn) [Referral]
grep linux command (www.google.com.vn) [Referral]
find command linux example (www.google.com.vn) [Referral]
command in unix (www.google.com.vn) [Referral]
tool trong unix,"command" (www.google.com.vn) [Referral]
exec in java example (www.google.com.vn) [Referral]
unix find complex selection (www.google.com.vn) [Referral]
for command windows example (www.google.com.vn) [Referral]
java execute linux command exampl (www.google.com.vn) [Referral]
"linux find command example" (www.google.com) [Referral]
find / |xarg grep -l 'noi dung' (www.google.com.vn) [Referral]
find command in unix (www.google.com.vn) [Referral]
find command (www.google.com.vn) [Referral]
linux find command (www.google.com.vn) [Referral]
"chmod command linux" (www.google.com.vn) [Referral]
example find sed command linux (www.google.com.vn) [Referral]
sed command (www.google.com.vn) [Referral]
find a folder in unix (www.google.com.vn) [Referral]
ubuntu find grep "noi dung" (www.google.com.vn) [Referral]
example use mysql command (www.google.com.vn) [Referral]
+"Linux commend" +Java (www.google.com.sg) [Referral]
find in unix (www.google.com.vn) [Referral]
find unix (www.google.com.vn) [Referral]
guru unix (es.search.yahoo.com) [Referral]

Họ tên
E-mail
(sẽ hiển thị gravatar theo email của bạn)
Trang chủ
Bộ gõ Tắt TELEX VNI
Ý kiến (Không dùng HTML)  

Nhập mã kiểm tra :(chống xì-pum ý mà):