Friday 16 October 2009

Parsing files with Bourne shell

My useful piece of Bourne shell script for the day is a piece of script that goes through .change files in the current directory and copies all the files listed to a different directory. It skips the _sources.change files as well.



The obvious use is to copy the files so we can use "reprepro processincoming" to save packages to a repository.

There are probably smarter ways to do this, but this is pretty portable as it only requires grep and cut, and very minimal functionality from them as well. And even grep is not needed if you want to copy everything.

1 comment:

  1. Best Real Money Casino Apps in USA 2021 - CasinoWow
    Slots Casino — One of kadangpintar the most recognizable online slots deccasino games around. This game's most งานออนไลน์ recent is the Playtech 🏆 Best Real Money Casino 1등 사이트 App: SlotWolf🎁 #1 USA Casino Bonus: Risk Free Spins for $1,000🏆 Best Real Money Casino App: SlotsMillion

    ReplyDelete