Advertisement
metalx1000

BASH combine each item with another from file

Jun 3rd, 2016
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while read item1
  4. do
  5.   while read item2
  6.   do
  7.     echo "$item1-$item2"
  8.   done < list.txt
  9. done < list.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement