You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/make-multi-select.sh
+3-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ EOT
9
9
10
10
while IFS=# read command description; do
11
11
cat <<EOT
12
-
## $description
12
+
###$description
13
13
\`\`\`
14
14
> $command
15
15
@@ -32,5 +32,6 @@ echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick -A '.*'/x::__,sq#Create a new column name
32
32
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick '.*'//x::__,sq#Using the double slash has the same effect, but columns are grouped pairwise
33
33
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick '.*'//_pct::__:c^1,pct#This can be useful when expressing as a percentage, here relative to column c
34
34
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick -A '.*'/x::__,sq '.*'/y::__,sq,sq#Multiple computations are possible
35
-
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick -i '.*'::'.*',addall#A (not particularly useful) curiosity - the first column is 3+4+5=12, then the second column is 12+4+5=21, the third 12+21+5
35
+
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick -i '.*'::'.*',addall#A (not very useful) curiosity - the first column is a = (a=3)+(b=4)+(c=5)=12, then the second is b = (a=12)+(b=4)+(c=5)=21, the third is c = (a=12)+(b=21)+(c=5)
36
+
echo -e "a\\tb\\tc\\n3\\t4\\t5" | pick -Ai '.*'/x::'.*',addall#(continued) this behaviour disappears if the values are stored in a new name
> echo -e "a\tb\tc\n3\t4\t5" | pick -A '.*'/x::__,sq '.*'/y::__,sq,sq
94
94
@@ -97,7 +97,7 @@ a b c ax bx cx ay by cy
97
97
```
98
98
99
99
100
-
## A (not particularly useful) curiosity - the first column is 3+4+5=12, then the second column is 12+4+5=21, the third 12+21+5
100
+
###A (not very useful) curiosity - the first column is a = (a=3)+(b=4)+(c=5)=12, then the second is b = (a=12)+(b=4)+(c=5)=21, the third is c = (a=12)+(b=21)+(c=5)
0 commit comments