I have about 50 shapefiles I would like to change each of their file names which contains "2014" to "2015". I would like to use a python script but have not been able to figure out how to do it. I have tried using the sample script from Esri but to no avail. I've tried to use other examples I've found Looping through list of shapefiles to rename them using ArcPy? but unable to work it into my problem.
import os
import arcpy
arcpy.env.workspace =
fcs = arcpy.ListFeatureClasses(fc)
if fc.contains("4"):
arcpy.Rename_management("5")