Shell Scripting: check if record exist in file