I am trying to create a script which gives back those lines of a file F which starts with a given name N and I am giving the Name and the File name through the parameters, like
sed '/^$1/!d' $2
But its not working, can anyone explain or give another solution?