So I have this script below to ssh to different server and change the ulimit from one value to another.
for host in $(</tmp/server_list.txt); do
ssh $host 'hostname -s; sudo sed -i.20180206 's/20480/40960/g'' /etc/security/limits.conf
done
problem is since we have multiple single quotes starting and ending the script isn't working
could someone help modify or suggest some alternative that we can use instead of single quotes?