neeyoo11

DuplicateLineBtwnFiles

May 26th, 2022 (edited)
299
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clear
  2. if [ $# -ne 2 ]
  3. then
  4. echo "Invalid Number of Args"
  5. exit
  6. fi
  7. str=`cat $1`
  8. for a in $str
  9. do
  10. echo "Word=$a, Count=`grep -c "$a" $2`"
  11. done
  12.  
RAW Paste Data Copied