#!/bin/bash find *.txt | wc -l;
这将给出txt文件的数量。在我的程序中,我该如何将此输出放入一个变量中,比如说“count”?
#!/bin/bash count=$(find *.txt | wc -l)