Here is a code which shows how to find and replace multiple text in a file using Python: search_text_1 = "36419" search_text_2 = "250847" search_text_3 = "2764437" search_text_4 = "OOGGT" i=1 for j in range(2000): with open('C:\\Users\\Original\\' 'source_filename.txt', 'r') as file: data = file.read() GS = int(search_text_1) + i data1 = data.replace(search_text_1, str(GS)) with open('C:\\Users\\Original\\Champ\\' 'E_EI4.20213.024.35.X1.243_' + str(i) + '.txt', 'w') as file: file.write(data1) with open('C:\\Users\\Original\\Champ\\' 'E_EI4.20213.024.35.X1.243_' + str(i) + '.txt', 'r') as file: data = file.read() N9 = int(search_text_2) ...
Following are some important Linux commands: Linux commands: Important note: Admin user in windows = root user in linux 1. uname - It will show the kernal name 2. Uname – r - It will show the Kernal latest release 3. Uname – r - It will show the Kernal version 4. Uname – m - It will show the Kernal machine (32/64 bit) 5. Uname – o - It will show the Kernal OS (Operating System) 6. Uname – a - To ...