-
Anonymous
Текстовый файл в csv-скрипт
Сообщение
Anonymous »
Мы используем скрипт, который принимает некоторые данные и преобразует их в файл csv. Используемый нами скрипт приведен ниже:
Код: Выделить всё
!/bin/bash
read -p "Enter /DIR/PATH/FILENAME where you wish to copy the data: " FILENAME
cat test.txt |
awk '
BEGIN {
OFS = ","
numTags = split("insert_job job_type box_name command machine owner date_conditions condition run_calendar exclude_calendar days_of_week run_window start_times start_mins resources profile term_run_time watch_file watch_interval",tags)
for ( tagNr=1; tagNr
Подробнее здесь: [url]https://stackoverflow.com/questions/78339485/text-file-to-csv-script[/url]
1713390370
Anonymous
Мы используем скрипт, который принимает некоторые данные и преобразует их в файл csv. Используемый нами скрипт приведен ниже:
[code]!/bin/bash
read -p "Enter /DIR/PATH/FILENAME where you wish to copy the data: " FILENAME
cat test.txt |
awk '
BEGIN {
OFS = ","
numTags = split("insert_job job_type box_name command machine owner date_conditions condition run_calendar exclude_calendar days_of_week run_window start_times start_mins resources profile term_run_time watch_file watch_interval",tags)
for ( tagNr=1; tagNr
Подробнее здесь: [url]https://stackoverflow.com/questions/78339485/text-file-to-csv-script[/url]