Advertisement
Bisix

two_cols_combi.sh

Feb 4th, 2021
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. c1=$(cut -d \| -f1 infile.txt)
  2. c2=$(cut -d \| -f2 infile.txt)
  3.  
  4. while read i1; do
  5.     while read i2; do
  6.         echo "$i1|$i2"
  7.     done <<<$c2
  8. done <<<$c1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement