SHARE
TWEET

Untitled

a guest Jun 27th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # generate the 2 basic files
  2. cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 32 | head -n 30 > random1.csv
  3. cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 32 | head -n 30 > random2.csv
  4.     # generate common lines
  5. cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 32 | head -n 3 > common.csv
  6.     # mix the common lines into the 2 files
  7. cat random1.csv common.csv | shuf > random11.csv
  8. cat random2.csv common.csv | shuf > random22.csv
  9.      
  10. $ cat common.csv
  11. 8b1df61042e621bb3cd3ba43942b5ada
  12. 71b2368e90c6eb038e84ef29446c0dec
  13. 56697847ec43cc181a556625ec880d85
  14.     # select one common line and look for it in the 2 files
  15. $ grep -n 8b1df61042e621bb3cd3ba43942b5ada random11.csv
  16. 14:8b1df61042e621bb3cd3ba43942b5ada
  17. $ grep -n 8b1df61042e621bb3cd3ba43942b5ada random22.csv
  18. 33:8b1df61042e621bb3cd3ba43942b5ada
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top