I know this is probably really easy but I've just started learning the basics of this stuff.
Im trying to extract the number from a whole bunch of filesnames and store then as variables in my bash script.
So for instance my filename is dim24.15c.07/junk/altmag6082Jb7J1f5.txt, all the characters are fixed from one file name to the next but the numbers vary, I need to get the number out, I'm reading the sed manual, anybody know the answer quickly?
Well sort of, the problem is I dont know how many number I need or anything else really. The only thing I have is the "template" dimxxyyczz/junk/altmaga...kJbfJ1fc.txt
Im trying to extract xx,yy,zz,a...k,c so I can use them as variables.