Iam new to shell scripting,i have a text file in my $home directory mentioned below.
201249_BAN_EXCL.TXT
I need to refer the above file in my automated script but the number 201249 used to change every week.How can i refer to this file everyt time without renaming it manually?
Could you please explain how you are getting this value. Which code you are running which is giving you this text file name.Can you please tell us about your requirement in detail.
In addition to what Subbeh and Itkamaraj said you also need to specify this home directory path where this text file exist in your script if you run the script from some other path.