#!/bin/sh UNTAR="tar -xvf " #unzip all zip files function unzip_all_file() { for i in *.zip do unzip $i done } #untar all tar.gz files function untar_all_file() { for i in *.tar.gz do $UNTAR $i done } in unzip) unzip_all_file ;; untar) untar_all…
$ cat file START Unix Linux START Solaris Aix SCO 1. Join the lines following the pattern START without any delimiter. $ awk '/START/{if (NR!=1)print "";next}{printf $0}END{print "";}' file UnixLinux SolarisAixSCO 2. Join the lines fol…