#!/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 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录