cut cheatsheet of cut Use cut to get strings between double quotes echo "this is a \"what we really want\" string" this is a "what we really want" string echo "this is a \"what we really want\" string" | cut -d '"' -f 2 Output what we really want