⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exercising-dd.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# exercising-dd.sh# Script by Stephane Chazelas.# Somewhat modified by ABS Guide author.infile=$0       # This script.outfile=log.txt # This output file left behind.n=3p=5dd if=$infile of=$outfile bs=1 skip=$((n-1)) count=$((p-n+1)) 2> /dev/null# Extracts characters n to p (3 to 5) from this script.# --------------------------------------------------------echo -n "hello world" | dd cbs=1 conv=unblock 2> /dev/null# Echoes "hello world" vertically.# Why? Newline after each character dd emits.exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -