I want to use sed to extract servername from filenames_for_severname_all

echo "filenames_for_servername_all" | sed -n 's|filenames_for_\(*\)_all|\1|p'The above returns nothing. Can anyone explain?


Check Solution