If you are on Windows, you should use double quotes instead of single quotes:
For example:
cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) See also:
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalIf you are on Windows, you should use double quotes instead of single quotes:
For example:
cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) See also:
If you are on Windows, you should use double quotes instead of single quotes:
For example:
cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) See also:
If you are on Windows, you should use double quotes instead of single quotes:
For example:
cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) See also:
If you are on Windows, you should use double quotes instead of single quotes:
For example:
cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) See also: