Question: I have a function here that finds the sibling(answerfields) of the parent(li) then counts the child inputs.

```
$('#addAnswer').live('click', function(){
    var selected = $(this).parents('li').siblings('#answerFields').children('input').length;
    document.getElementById('legend').innerHTML = selected;
});

```

How can i shorten this up using Jquery 1.5.2?

I have a working [JSFiddle](http://jsfiddle.net/rayd360/bPp8a/).

Answer: 
You can escape `$keysalts` using sed itself:

```
sed -i "s/{AUTH-KEYS-SALTS}/`echo $keysalts | sed -e 's/[\/&]/\\&/g'`/g" wp-config.php

```

See [this question](https://stackoverflow.com/questions/407523/escape-a-string-for-sed-search-pattern) for more information.
Actually, I like this [one better](https://stackoverflow.com/questions/584894/sed-scripting-environment-variable-substitution)

```
sed -i 's/{AUTH-KEYS-SALTS}/'"$keysalts"'/g' wp-config.php

```

Personal choice. :-)