python - File names have a `hidden' m character prepended -
i have simple python script produces data in neutron star mode. use automate file names don't later forget inputs. script succesfully saves file
some_parameters.txt
but when list files in terminal see
msome_parameters.txt
the file name without "m" still valid , trying call file m returns
$ ls m* no such file or directory
so think "m" has special meaning of numerous google searches not yields answers. while can carry on without worrying, know cause. here how create file in python
# chi,epsi etc floats. make string file name file_name = "chi_%s_epsi_%s_epsa_%s_omega0_%s_eta_%s.txt" % (chi,epsi,epsa,omega0,eta) # a.out compiled c file outputs data os.system("./a.out > %s" % (file_name) )
any advise appreciated, can find answer posted in stackoverflow time i'm confused.
you have file special characters in name confusing terminal output. happens if ls -l
or (if possible) use graphical file manager - basically, find different way of listing files can see what's going on. possibility ls > some_other_filename
, @ file hex editor.
Comments
Post a Comment