Deutsch English Français Italiano |
<sblt6jt8rjk7bkr2sma6gttpard2hvbaro@4ax.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news-out.netnews.com!postmaster.netnews.com!us11.netnews.com!not-for-mail X-Trace: DXC=O6l@S^SnElBGE;6X:DPoL@HWonT5<]0TMdjI?Uho:XeKlL51CP6LDLL95GMl]75=8ATbWEAa^@:K@7@<I4Rf8bAAl3[[dIf;_mF2Do^b@=QS7G X-Complaints-To: support@blocknews.net From: Joel <joelcrump@gmail.com> Newsgroups: comp.os.linux.advocacy Subject: Re: More Funny Stuff From Joel Date: Sun, 16 Jun 2024 08:07:49 -0400 Message-ID: <sblt6jt8rjk7bkr2sma6gttpard2hvbaro@4ax.com> References: <17d716103c089ab3$7951$675878$802601b3@news.usenetexpress.com> <2ej96j1mbvgiok4q5c57vdlo94itpfu5dt@4ax.com> <6664e989$0$2363151$882e4bbb@reader.netnews.com> <v0r96jtsvodcnn4sk91ug1ulh2h76jgbvm@4ax.com> <Y6WdndgvFc_bifj7nZ2dnZfqnPudnZ2d@supernews.com> <666c774b$0$7519$426a74cc@news.free.fr> <q18p6j5ckngee5o3a34aido1k855a2blv1@4ax.com> <v4ldla$3n6db$2@dont-email.me> <jtfs6jlpqc89g0vlgcn3o6voij8oeuphd4@4ax.com> <v4llla$3s87h$3@dont-email.me> User-Agent: ForteAgent/8.00.32.1272 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit OS: Linux Mint 21.3 Cinnamon, with Wine 9.0 for WinAPI Lines: 45 NNTP-Posting-Host: 127.0.0.1 X-Trace: 1718539669 reader.netnews.com 2363136 127.0.0.1:44683 Bytes: 2523 Lawrence D'Oliveiro <ldo@nz.invalid> wrote: >>>You ever find the need to write little utility shell scripts, at least? >> >> To do what? > >Example: I did one to mirror a selected subset of my programming >projects to my laptop. It only copied project directories that already >existed on the laptop. > > dir=projects > remote=«main machine» > local=«laptop» > > if [ $(hostname) != "$local" ]; then > echo "$0: run this on $local" 1>&2 > exit 3 > fi > > IFS=$'\n' > flags="-AlprtX" > cd ~/$dir > # first matching rule applies, so put explicit includes before wildcard exclude > rsync ${flags} --delete --verbose \ > $(for d in */; do echo --include="/$d"; done) --exclude=/\* \ > $remote:$dir/ ./ Cool. -- Joel W. Crump Amendment XIV Section 1. [...] No state shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States; nor shall any state deprive any person of life, liberty, or property, without due process of law; nor deny to any person within its jurisdiction the equal protection of the laws. Dobbs rewrites this, it is invalid precedent. States are liable for denying needed abortions, e.g. TX.