We have received several questions about extracting substrings in Unix. For example, if you have an alphanumeric sequence such as "askdjg_235423_dkfjsn", how would you extract just the numeric portion. Please see the following stackoverflow post for a couple of simple methods: http://stackoverflow.com/questions/428109/extract-substring-in-bash