hi everyone
i have script name cs-700kl looking like this
mv klk_ta_01780_023 klk_ta_01780_023_m
tr "[\200-\232]" "[\140-\172]" <klk_ta_01780_023_m> klk_ta_01780_023
i'm running it in sh cs-700kl
i want every time that he will take the value of the end of the file
in this example klk_ta_01780_023 the value 023
and will add this 1 so that the next time he will run klk_ta_01780_024
buy the way
i need to take all the name of the file and change it because if i'll change just the number so when i get to file number 32 he will replace this one
tr "[\200-\232]" "[\140-\172]" too like tr "[\200-\233]" "[\140-\172]"
and i do'nt want it to happend
trying this :
awk '{gsub("klk_ta_01780_023","klk_ta_01780_024" \
); print}' cs-700kl
awk: Syntax error near line 1
awk: illegal statement near line 1
please help
thank's a lot