pattern match problem
if i have to do pattern match for file name with digit alphanumeric value like this
Code:
File_1234.csv and File_[0-9]*.csv for digit pattern match. when i am doing pattern match for the digit then both alphanumeric match and digit match is coming. where only digit match should should come. If usinng [:digit:] then it is not working. Code:
the part of code which i am using is like this |
In that code fragment, you set i=0 but fail to increment it, so it looks like an infinite loop...
As to your specific question, consider this: Code:
$ cat ramsvi Anyhow, why are you using a shell script for this task? There are several other languages that could, I think, be better used for this problem. (e.g., sed, gawk, grep, etc.) |
I think this is just a duplicate of this thread.
|
All times are GMT -5. The time now is 02:22 PM. |