Explore

Loading
Showing posts with label Word Designators. Show all posts
Showing posts with label Word Designators. Show all posts

Wednesday, February 15, 2012

Unix commands


2.3. Searching with grep
grep Command grep "pattern" filename
command | grep "pattern"
Search Patterns
beginning of line ^
end of line $
any single character .
single character in list or range []
character not in list or range [^]
zero or more of preceding char. or pattern *
zero or more of any character .*
escapes special meaning \
3. C-Shell Features.
3.1 History Substitution
Repeat Previous Command !!
Commands Beginning with str !str
Commands Containing str !?str[?]
All Arguments to Prev. Command !*
Word Designators
All Arguments :*
Last Argument :$
First Argument :^
n'th Argument :n