command line - How do I run a gawk file with spaces in the path name? -
i trying run next line in awk script , getting error. think error because filename has spaces in it. how phone call file without changing path name (i.e. rename file/path)? code contain within begin{} block.
installation_location_gawk = "l:/cpu_analysis/sanity/cpuanalysisapp/cpu_analysis_application/" data_summary_location_gawk = "c:/program files/cpu analysis/data/data_summary.csv" .... command = ("gawk -v version=" dataarray[1] " -v date=" dataarray[2] " -v platform=" dataarray[3] " -f ") (installation_location_gawk "generatesanity_scripts/removedata.awk ") data_summary_location_gawk system(command)
update: ran issue cannot copy/save/edit files in c:\program files due windows restrictions. solved problem moving project c:\my programs.
i think case of providing quotes in command string:
command = "gawk" command = command " -v version=\"" dataarray[1] "\"" command = command " -v date=\"" dataarray[2] "\"" command = command " -v platform=\"" dataarray[3] "\"" command = command " -f \"" installation_location_gawk "generatesanity_scripts/removedata.awk\"" command = command " \"" data_summary_location_gawk "\""
file command-line awk space gawk
No comments:
Post a Comment