for loop - AWK Script wildcard -


i need awk script ( how add wild card perform task described below). have file , submit every night external party. format of file {dateformat (yyyymmdd)} xxx1.csv. have xxx1 , xxx2 only. lately start getting .3 , .4 files. capture .3 , .4 manually , submit it. able have wildcard grab .3 , .4 automatically don’t miss accident. suggestions please? thank in advance

it sounds question how use file name globbing in shell, not awk. might you're looking for:

cmd [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]???[0-9].csv 

where "cmd" can awk, sed, grep, ls, whatever. depending other files have in directory might not need specific globbing pattern.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -