File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
# Run command and put output to system clipper.
4
4
#
5
5
# @Usage
6
- # $ c echo 'hello world!'
7
- # $ echo 'hello world!' | c
6
+ # $ c ls -l
7
+ # $ ls -l | c
8
+ # $ c -q < ~/.ssh/id_rsa.pub
8
9
#
9
10
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-c
10
11
# @author Jerry Lee (oldratlee at gmail dot com)
@@ -41,7 +42,6 @@ Run command and put output to system clipper.
41
42
If no command is specified, read from stdin(pipe).
42
43
43
44
Example:
44
- $PROG echo "hello world!"
45
45
$PROG grep -i 'hello world' menu.h main.c
46
46
set | $PROG
47
47
$PROG -q < ~/.ssh/id_rsa.pub
@@ -141,5 +141,5 @@ teeAndCopy() {
141
141
if (( ${# target_command[@]} == 0 )) ; then
142
142
teeAndCopy
143
143
else
144
- " ${target_command[@]} " | teeAndCopy
144
+ command " ${target_command[@]} " | teeAndCopy
145
145
fi
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ Run command and put output to system clipper.
98
98
If no command is specified, read from stdin(pipe).
99
99
100
100
Example:
101
- c echo " hello world!"
102
101
c grep -i ' hello world' menu.h main.c
103
102
set | c
104
103
c -q < ~ /.ssh/id_rsa.pub
You can’t perform that action at this time.
0 commit comments