【发布时间】:2015-09-10 17:24:16
【问题描述】:
我想向less -s -M +Gg 提供一个大数据文件,以便读取less -s -M +Gg 中的当前给定数据。
While-loop 示例(参见 ntc2 的回答)
较少的命令解释here。
将 yes 替换为二进制文件,该文件转换为二进制 ascii 和 hex:
while read -u 10 p || [[ -n $p ]]; do
hexdump -e '/4 "%08x\n"' {$p} \
\
| less -s -M +Gg
done 10</Users/masi/Dropbox/7-8\:2015/r3.raw
循环基于此线程here。
你怎么能把这样的数据读入less?
【问题讨论】: