Featured post
linux - What's the relationship between sed, grep, find, awk, gawk, which one is preferred? -
i'm new linux/unix. find task can accomplished many ways using these commands. there relationship between them? or 1 preferred? 1 outdated?
thanks.
see so 366980 discussion differences between perl, python, awk , sed.
there 4 distinct commands in list of five; awk , gawk closely related, gnu awk being gnu implementation of awk.
find
locating files in set of directories based on file characteristics such name or modification time. gnu find has many more capabilities traditional or posix versions of find.grep
locating content within files using regular expressions control selected. gnu grep has many more capabilities traditional or posix versions of grep.sed
modifying contents of files using editing commands, including regular expressions. gnu sed has many more capabilities traditional or posix versions of sed.awk
pattern matching , formatting language. programming language in way other tools mention not. when needed, useful. however, perl , python have capabilities of awk , many extras, many people use them instead of awk. gnu awk has more capabilities traditional or posix versions of awk.
so, tools list different jobs, can work in many ways. 1 other tool should aware of xargs
, takes lists of files , runs specified command on each of files in turn.
- Get link
- X
- Other Apps
Comments
Post a Comment