📄 exercising-dd.sh
字号:
#!/bin/bash# exercising-dd.sh# Script by Stephane Chazelas.# Somewhat modified by document author.input_file=$0 # This script.output_file=log.txtn=3p=5dd if=$input_file of=$output_file bs=1 skip=$((n-1)) count=$((p-n+1)) 2> /dev/null# Extracts characters n to p from this script.# -------------------------------------------------------echo -n "hello world" | dd cbs=1 conv=unblock 2> /dev/null# Echoes "hello world" vertically.exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -