#!/bin/bash #该代码纯属应付题目 a=`cat nowcoder.txt | awk '{print $1}' | tr -s "\n" " "` b=`cat nowcoder.txt | awk '{print $2}' | tr -s "\n" " "` echo -e "$a\n$b"