#!/usr/bin/env bash str=RATTUS_littleBoy.cluster_000621.ok.ok.ok.oksubstr=${str#*.}result=${substr%%.*} echo "$result"
Standard input is empty
cluster_000621
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!