Generate dummy files in bash

后端 未结 8 907
面向向阳花
面向向阳花 2021-02-01 17:08

I\'d like to generate dummy files in bash. The content doesn\'t matter, if it was random it would be nice, but all the same byte is also acceptable.

My first attempt was

8条回答
  •  情深已故
    2021-02-01 17:48

    echo "To print the word in sequence from the file" c=1 for w in cat file do echo "$c . $w" c = expr $c +1 done

提交回复
热议问题