我想head <(cat file.txt)
在 R 中使用系统运行,但是转义<
是一个问题。
system(paste("head <(cat file.txt)"))
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `head <(cat file.txt)'
I've tried escaping it, but its not working
system(paste("head /<(cat file.txt)"))
head: cannot open `/<(cat file.txt)' for reading: No such file or directory
有人可以提出替代方案。
干杯