Re: install the Korn SHELL program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



최용주 wrote:
> I installed the 'ksh', so when I type the command in my terminal. It echoes the '$'.
>
>
>   
Save the attached and make it executable and try it....
#!/bin/ksh
rm *.tmp
rm *.lst
for i in *.type3; do
echo $i >> name.tmp
gawk 'END {print NR}' $i >> nrow.tmp
done

paste name.tmp nrow.tmp > filename.tmp
gawk '{ if ( $2 < 1) print $1}' filename.tmp >> final.lst

for ii in $(cat final.lst) ;do
rm $ii
done

rm *.tmp
rm *.lst
for i in *.type4; do
echo $i >> name.tmp
gawk 'END {print NR}' $i >> nrow.tmp
done

paste name.tmp nrow.tmp > filename.tmp
gawk '{ if ( $2 < 1) print $1}' filename.tmp >> final.lst

for ii in $(cat final.lst) ;do
rm $ii
done


rm *.tmp
rm *.lst
for i in *.type2; do
echo $i >> name.tmp
gawk 'END {print NR}' $i >> nrow.tmp
done

paste name.tmp nrow.tmp > filename.tmp
gawk '{ if ( $2 < 1) print $1}' filename.tmp >> final.lst

for ii in $(cat final.lst) ;do
rm $ii
done

rm *.tmp
rm *.lst
for i in *.type1; do
echo $i >> name.tmp
gawk 'END {print NR}' $i >> nrow.tmp
done

paste name.tmp nrow.tmp > filename.tmp
gawk '{ if ( $2 < 1) print $1}' filename.tmp >> final.lst

for ii in $(cat final.lst) ;do
rm $ii
done
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux