Linux-下--查看到的--jieguotxt-文本内容n显示为一行内容nLinux下帮我写个sh脚本
#!/bin/bash
This script reads the content of jieguo.txt file and displays it as a single line.
Read the content of jieguo.txt file
content=$(cat jieguo.txt)
Replace all line breaks with spaces
content=$(echo $content | tr '\n' ' ')
Display the content as a single line
echo $content
原文地址: https://www.cveoy.top/t/topic/qHy 著作权归作者所有。请勿转载和采集!