Using SubStr

I know about Substr and its usage within a script but what I wanted to do is go backward.

So if I have a file name i.e.
20181010_64735_file_name
or
20131010_100810_file_name

I ONLY want to retrieve the file_name for my $GlobalVariable

??


di652 (BOB member since 2005-02-24)

Hi,

is the format of your complete file name fixed?
i.e. XXXXX_XXXXXX_file_name. is there an underscore between FILE and NAME as well??
If So , you can use WORD_EXT(,3,’’) and WORD_EXT(,4,’’) and probably you can concatenate them , to get your file name.

Regards,

Jayant


Jay_mKumar :india: (BOB member since 2016-03-24)