I'm trying to produce this behaviour:
grep 192.168.1 *.txt
By passing a string into grep via Xargs but it is going on the end instead of as the first parameter.
echo 192.168.1 | xargs grep *.txt
I need to tell xargs (or something similar) to put the incoming string between 'grep' and '*' instead of on the end.
How do I do this?