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 33# Run command and put output to system clipper.
44#
55# @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
89#
910# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-c
1011# @author Jerry Lee (oldratlee at gmail dot com)
@@ -41,7 +42,6 @@ Run command and put output to system clipper.
4142If no command is specified, read from stdin(pipe).
4243
4344Example:
44- $PROG echo "hello world!"
4545 $PROG grep -i 'hello world' menu.h main.c
4646 set | $PROG
4747 $PROG -q < ~/.ssh/id_rsa.pub
@@ -141,5 +141,5 @@ teeAndCopy() {
141141if (( ${# target_command[@]} == 0 )) ; then
142142 teeAndCopy
143143else
144- " ${target_command[@]} " | teeAndCopy
144+ command " ${target_command[@]} " | teeAndCopy
145145fi
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ Run command and put output to system clipper.
9898If no command is specified, read from stdin(pipe).
9999
100100Example:
101- c echo " hello world!"
102101 c grep -i ' hello world' menu.h main.c
103102 set | c
104103 c -q < ~ /.ssh/id_rsa.pub
You can’t perform that action at this time.
0 commit comments