Linuxにcatで行番号を表示する方法
書式
cat -n filename
使用例
# cat -n /etc/fstab
1
2 #
3 # /etc/fstab
4 # Created by anaconda on Sun Mar 7 10:44:29 2021
5 #
6 # Accessible filesystems, by reference, are maintained under '/dev/disk/’.
Coding Changes the World
書式
cat -n filename
使用例
# cat -n /etc/fstab
1
2 #
3 # /etc/fstab
4 # Created by anaconda on Sun Mar 7 10:44:29 2021
5 #
6 # Accessible filesystems, by reference, are maintained under '/dev/disk/’.