Mercurial > repo
annotate bin/tac @ 7415:588ebe6ba2d8
<b_jonas> learn norm is the name of the functions in the Eigen and opencv libraries to compute the 2-norm of a vector, and the name of the function in C++ to compute the squared 2-norm of a complex number
author | HackBot |
---|---|
date | Sun, 17 Apr 2016 20:17:21 +0000 |
parents | ff8fd5c8898c |
children |
rev | line source |
---|---|
6630
ff8fd5c8898c
<izabera> ` printf \'#!/bin/bash\\nfor file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%%s\\\\n" "${lines[i]}"; done done\' > bin/tac
HackBot
parents:
6629
diff
changeset
|
1 #!/bin/bash |
ff8fd5c8898c
<izabera> ` printf \'#!/bin/bash\\nfor file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%%s\\\\n" "${lines[i]}"; done done\' > bin/tac
HackBot
parents:
6629
diff
changeset
|
2 for file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%s\n" "${lines[i]}"; done done |