Seq

All posts tagged Seq

Had an issue that wanted to translate two digit years into 4 digits… I realize this would be little bit different if we needed this century but we didn’t just needed 1900’s.

Two digits were getting written as 35-37 or 40-50.  Which needed to be translated to 1935 1936 1937 or 1940.1941 1942 1943 1944 1945 1946 1947 1948 1949 1950.

Or

By creating a file named ‘years’ with two digit years.  I’m sure there are better ways then this ….

67 80

55 60

45 50

 

 

Just figured this out and in the past I would either do two for loops ..one for 01 – 09 and other 10 – X.  Figured there had to be a better way, and sure enough this is..

servername01p
servername02p
servername03p
servername04p
servername05p
servername06p

.

.

.

servername49p
servername50p