create a shell file in macos to import data in salary table in salary.db: all W12.txt in…
- User
create a shell file in macos to import data in salary table in salary.db: all W12*.txt in this folder salary table contain 79 text columns [column 1 to coulmn 77 name is col1... col77, column 78 is region and column 79 is yearmonth] and W12 tab separated value file contain 77 columns. all W12*.txt name is example: "W12757351000401.-blablatxt" (W + "127573" same for all file + region code 4digit in this example "5100"+ yearmonth 4 digit lsat digit that in example "0401" + some random string ) i need batch file to import all files in current folder and add region digit to coulmn 79 and yearmonth 4 digit to column 78 please write fullcode please note that all text files W12*.txt are UTF-16LE encoding.
- Assistant