Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'permutations'

994801 - product rule: awk permutations
  1. echo f\' = $(cat <<< ghl | \
  2. awk '{i=length()+1; while(i-1) print( substr($0,0,i-1) "'\''" substr($0,i--) )}' |\
  3. awk 'BEGIN {RS = ":"; FS="\n"} {i= NF-2; print $(NF-1); while(i) {printf(" + %s", $i ); i--}; print "\n" }')
  4. f' = g'hl + gh'l + ghl'
942713 - product rule: awk permutations
  1. echo f\' = $(cat <<< ghl | \                                                
  2. awk '{i=length()+1; while(i-1) print( substr($0,0,i-1) "'\''" substr($0,i--) )}' |\
  3. awk 'BEGIN {RS = ":"; FS="\n"} {i= NF-2; print $(NF-1); while(i) {printf(" + %s", $i ); i--}; print "\n" }')
  4. f' = g'hl + gh'l + ghl'
fantasy-obligation