title: How to use command line arguments with find in bash script?
body: <p>I have a hard time writing simple script using find command. I want to delete files with given size in some directory. I want to be able to specify names of files (like Efficiency_*) and size of files to delete. I tried following script:</p>
  
  <pre><code>#!/bin/bash
  CD=($pwd)
  find $CD -name $1 -size $2 -delete
  </code></pre>
  
  <p>I am running it from the correct directory as follows:</p>
  
  <pre><code>/path/to/directory/script.sh 'Efficiency_*' '-500c'
  </code></pre>
  
  <p>but it does not work. </p>
  
  <p>What is the correct way to do it?</p>