exercising-dd.sh
来自「一本完整的描述Unix Shell 编程的工具书的所有范例」· Shell 代码 · 共 21 行
SH
21 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?