Tagged: unix

About linux : linux-shell-script-delimiter

Question Detail How to change delimiter from current comma (,) to semicolon (;) inside .txt file using linux command? Here is my ME_1384_DataWarehouse_*.txt file: Data Warehouse,ME_1384,Budget for HW/SVC,13/05/2022,10,9999,13/05/2022,27,08,27,08 Data Warehouse,ME_1384,Budget for HW/SVC,09/05/2022,10,9999,09/05/2022,45,58,45,58 Data Warehouse,ME_1384,Budget...

About python : how-to-iterate-through-the-Unix-command-result-in-python-script

Question Detail cmd=(‘~/bin/pelbase export_site -a HTTP_S_ER’) text=os.system(cmd) for line in text: if line == ‘xps_entity’: entity=line print(line) elif line == ‘xps_pass’: entity=line print(line) elif line == ‘xdest_addr’: entity=line print(line) elif line == ‘xmax_num’: entity=line...

About linux : grep-between-timestamps-from-logs-in-Unix

Question Detail I have the following logs 2022-07-23T09:00:00,987 hi 2022-07-23T10:00:00,987 hi 2022-07-23T11:10:00,987 hi 2022-07-23T12:52:00,987 hi 2022-07-23T13:29:00,987 hi 2022-07-23T13:59:00,987 hi I want to grep only the lines between 10 AM to 13:30 PM. Here is...