简体   繁体   中英

File created in linux transferred to Windows shows corrupted

I have created an Excel file from delimted text file using awk in linux terminal transferring the same to windows. when opened it shows a pop-up "This file might be corrupted or unsafe.would you like to open?"But on tapping yes I could see data everything is fine as expected.How to avoid such pop-up. I have tried to convert to .xlsx then I couldn't even see the data I tried to zip and send then unzip same warning popsup

My guess as to what is going on is that the incoming Excel file is still basically a Linux file, but MS Office, being flexible, is allowing you to open it. For a one time fix, try the following steps from Windows Excel:

  • Open the Linux Excel file ( some_file.xlsx )
  • Save as another file name ( some_new_file.xlsx )
  • Close Excel
  • Delete some_file.xlsx and rename some_new_file.xlsx to some_file.xlsx

Now try opening the file again, and hopefully the error message will have gone away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM