I have this command on linux which I have problem converting into type
on Windows:
row = run('cat '+'C:/Users/Kyle/Documents/final/VocabCorpus.txt'+" | wc -l").split()[0]
For the statement " wc - l" is for the line count to see how many lines exist. If I were to change it to the following using "type" command, what should it be?
I tried this and it doesnt work.
row = run('type '+'C:/Users/Kyle/Documents/final/VocabCorpus.txt'+" | wc -l").split()[0]
The run command is below:
def run(command):
output = subprocess.check_output(command, shell=True)
return output
Please help me. Thank you.