1

I would like to know difference between below 2 commands cat and fold commands? I just used fold command and it acts like cat command.

fold file1.txt
cat fold.txt (both are using to display the contents of the file)
4

3 に答える 3

1

それらのマンページを確認してください

man fold
fold - wrap each input line to fit in specified width

man cat
cat - concatenate files and print on the standard output

明らかにfold幅を指定できますが、そのようなオプションはありませんcat

于 2013-10-24T10:52:39.660 に答える