- Joined
- Apr 3, 2002
- Location
- Bloomington, IN
I finally got irritated enough to (partially) implement some common linux commands in windows. So far:
grep:
Version: Nov 7 2002 23:19:39
Author: Paul Macklin, [email protected]
grep: Emulates the grep command of Linux / Unix.
Looks for instances of the supplied argument
<pattern> in the indicated file <filename>.
Usage: grep [options] <pattern> <filename>
Options: -i :: Ignores case distinctions.
By default, grep is case-sensitive.
-n :: Displays the line number of each match found.
-h :: Displays this help information.
NOTE1: Enclose <pattern> in quotes to search for a multiple-
word phrase. (e.g., grep "bool bIgnoreCase" grep.cpp)
NOTE2: Use the period (.) for <pattern> to act as a wildcard,
which then causes grep to display the entire file.
example use:
C:\Program Files\[email protected]\grep -i protein FAHlog.txt
Searching for protein in FAHlog.txt (case-insensitive) ...
[03:26:49] Protein: p206
[15:21:44] Protein: p206
[22:45:25] Protein: p610_tetP30_build_ext
[04:34:46] Protein: p610_tetP30_build_ext
tail: (partially complete)
Version: Nov 4 2002 04:21:58
Author: Paul Macklin, [email protected]
tail: Emulates the tail command of Linux / Unix.
Displays the last 5 lines of the indicated file.
Usage: tail [options] <filename>
Options: -s <arg> :: Override defaults of whether or not to show
line numbers. Enter 0 for no line numbers, and
nonzero to show the line numbers. Default is 0.
-n <arg> :: Override defaults of how many lines to show.
Default is 5.
example:
C:\Program Files\[email protected]\tail -n 12 FAHlog.txt
[04:34:47] TINKER: Software Tools for Molecular Design
[04:34:47] Version 3.8 October 2000
[04:34:47] Copyright (c) Jay William Ponder 1990-2000
[04:34:47] portions Copyright (c) Michael Shirts 2001
[04:34:47] portions Copyright (c) Vijay S Pande 2001
[04:43:39] Finished a frame (24)
[04:52:40] Finished a frame (25)
[05:01:55] Finished a frame (26)
[05:11:11] Finished a frame (27)
[05:20:49] Finished a frame (28)
[05:30:16] Finished a frame (29)
[05:40:02] Finished a frame (30)
coming soon: head.
grep:
Version: Nov 7 2002 23:19:39
Author: Paul Macklin, [email protected]
grep: Emulates the grep command of Linux / Unix.
Looks for instances of the supplied argument
<pattern> in the indicated file <filename>.
Usage: grep [options] <pattern> <filename>
Options: -i :: Ignores case distinctions.
By default, grep is case-sensitive.
-n :: Displays the line number of each match found.
-h :: Displays this help information.
NOTE1: Enclose <pattern> in quotes to search for a multiple-
word phrase. (e.g., grep "bool bIgnoreCase" grep.cpp)
NOTE2: Use the period (.) for <pattern> to act as a wildcard,
which then causes grep to display the entire file.
example use:
C:\Program Files\[email protected]\grep -i protein FAHlog.txt
Searching for protein in FAHlog.txt (case-insensitive) ...
[03:26:49] Protein: p206
[15:21:44] Protein: p206
[22:45:25] Protein: p610_tetP30_build_ext
[04:34:46] Protein: p610_tetP30_build_ext
tail: (partially complete)
Version: Nov 4 2002 04:21:58
Author: Paul Macklin, [email protected]
tail: Emulates the tail command of Linux / Unix.
Displays the last 5 lines of the indicated file.
Usage: tail [options] <filename>
Options: -s <arg> :: Override defaults of whether or not to show
line numbers. Enter 0 for no line numbers, and
nonzero to show the line numbers. Default is 0.
-n <arg> :: Override defaults of how many lines to show.
Default is 5.
example:
C:\Program Files\[email protected]\tail -n 12 FAHlog.txt
[04:34:47] TINKER: Software Tools for Molecular Design
[04:34:47] Version 3.8 October 2000
[04:34:47] Copyright (c) Jay William Ponder 1990-2000
[04:34:47] portions Copyright (c) Michael Shirts 2001
[04:34:47] portions Copyright (c) Vijay S Pande 2001
[04:43:39] Finished a frame (24)
[04:52:40] Finished a frame (25)
[05:01:55] Finished a frame (26)
[05:11:11] Finished a frame (27)
[05:20:49] Finished a frame (28)
[05:30:16] Finished a frame (29)
[05:40:02] Finished a frame (30)
coming soon: head.