Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<<<<< EVACUATION ROUTE <<<<<


computers / alt.os.linux.suse / Re: not?

SubjectAuthor
* not?Sidney_Kotic
+* Re: not?Malcolm
|`- Re: not?Sidney_Kotic
+- Re: not?marrgol
`* Re: not?Sidney_Kotic
 `- Re: not?marrgol

1
not?

<t3fphu$umm$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=497&group=alt.os.linux.suse#497

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!aioe.org!lMgZrt+brKvEdFa3M/Ij/A.user.46.165.242.91.POSTED!not-for-mail
From: kan...@have.it (Sidney_Kotic)
Newsgroups: alt.os.linux.suse
Subject: not?
Date: Sat, 16 Apr 2022 17:12:29 -0800
Organization: Aioe.org NNTP Server
Message-ID: <t3fphu$umm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="31446"; posting-host="lMgZrt+brKvEdFa3M/Ij/A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Sidney_Kotic - Sun, 17 Apr 2022 01:12 UTC

Long, long ago back when I was using DR-DOS there was a nice command that looked
something like this:
not *.pdf del *
And everything except *.pdf went into the bit-bucket. Basically it worked by
setting the "h" attribute on the *.pdf file(s), run the command, and then
removing the "h" attribute.

Is there a bash utility like this?

Re: not?

<20220416205135.653df4f5@grover.homelinux.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=498&group=alt.os.linux.suse#498

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.bbs.nz!.POSTED.69-92-221-23.cpe.sparklight.net!not-for-mail
From: malcolml...@linuxmail.org.invalid (Malcolm)
Newsgroups: alt.os.linux.suse
Subject: Re: not?
Date: Sat, 16 Apr 2022 20:51:35 -0500
Organization: Cleveland, MS 38732
Message-ID: <20220416205135.653df4f5@grover.homelinux.org>
References: <t3fphu$umm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="EbFtfG3AwfSAbT2K3GnK5wSNl5xi8hApB/+D883ADQ0";
logging-data="20550"; mail-complaints-to="abuse@news.bbs.nz"
X-Newsreader: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-suse-linux-gnu)
X-Face: #2)G9?|E;d3##C3@1mWC'x(gNiX1_VP8R-K}_GgC@1?E__.x3G;(v4?fdnXF)-]@Pz44&2<-9R<@Apt"$wr8H~KDnnmK4)%DL{mXUtOhb2m.9NF5p+#gp9kQg5Dhi"1qD$kOO5NUV_9RN,6MXqq|V6\se3N5mPpd@%GgcE?,3I40B!#+!r^<[9s6BD#Zvd=d2t)uHB/O<VQZ`d1Al{+S<f8_K8(:RdRwA\tTg~PaP"1oF{y60ZRdlA\:oVESUkEq)!{3_lO+MMA3LI9RVs)=rqb;L0L<oY9j_2/\0#(\K<g4$-c[xLk1ezQ
 by: Malcolm - Sun, 17 Apr 2022 01:51 UTC

On Sat, 16 Apr 2022 17:12:29 -0800
Sidney_Kotic <kant@have.it> wrote:

> Long, long ago back when I was using DR-DOS there was a nice command
> that looked something like this:
> not *.pdf del *
> And everything except *.pdf went into the bit-bucket. Basically it
> worked by setting the "h" attribute on the *.pdf file(s), run the
> command, and then removing the "h" attribute.
>
> Is there a bash utility like this?

find . -type f ! -iname "*.pdf" -delete

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
Tumbleweed 20220414 | GNOME Shell 42.0 | 5.17.2-1-default
HP Z440 | Xeon E5-2690 V3 X24 @ 2.60GHz | AMD RX550/Nvidia Quadro T400
up 3:07, 2 users, load average: 0.83, 0.58, 0.30

Re: not?

<t3g1o3$15n4$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=499&group=alt.os.linux.suse#499

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!aioe.org!lMgZrt+brKvEdFa3M/Ij/A.user.46.165.242.91.POSTED!not-for-mail
From: kan...@have.it (Sidney_Kotic)
Newsgroups: alt.os.linux.suse
Subject: Re: not?
Date: Sat, 16 Apr 2022 19:32:18 -0800
Organization: Aioe.org NNTP Server
Message-ID: <t3g1o3$15n4$1@gioia.aioe.org>
References: <t3fphu$umm$1@gioia.aioe.org>
<20220416205135.653df4f5@grover.homelinux.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="38628"; posting-host="lMgZrt+brKvEdFa3M/Ij/A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Sidney_Kotic - Sun, 17 Apr 2022 03:32 UTC

On 4/16/22 17:51, Malcolm wrote:

> find . -type f ! -iname "*.pdf" -delete

alias not="find . -type f ! -iname "
not "*.pdf" -delete

Pretty close, thanks. I'll fiddle with it more in the morning, there's a beer
in the fridge calling my name LOUDLY.

Re: not?

<625c5f15$0$490$65785112@news.neostrada.pl>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=503&group=alt.os.linux.suse#503

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: not?
Newsgroups: alt.os.linux.suse
References: <t3fphu$umm$1@gioia.aioe.org>
From: marr...@address.invalid (marrgol)
Date: Sun, 17 Apr 2022 20:40:21 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <t3fphu$umm$1@gioia.aioe.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 14
Message-ID: <625c5f15$0$490$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 176.111.237.144
X-Trace: 1650220821 unt-rea-a-01.news.neostrada.pl 490 176.111.237.144:42008
X-Complaints-To: abuse@news.neostrada.pl
X-Received-Bytes: 1249
 by: marrgol - Sun, 17 Apr 2022 18:40 UTC

On 17/04/2022 at 03.12, Sidney_Kotic wrote:
> Long, long ago back when I was using DR-DOS there was a nice command that looked
> something like this:
> not *.pdf del *
> And everything except *.pdf went into the bit-bucket. […]
>
> Is there a bash utility like this?

shopt -s extglob
rm !(*.pdf)

--
mrg

Re: not?

<t3hp7f$151f$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=504&group=alt.os.linux.suse#504

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!aioe.org!lMgZrt+brKvEdFa3M/Ij/A.user.46.165.242.91.POSTED!not-for-mail
From: kan...@have.it (Sidney_Kotic)
Newsgroups: alt.os.linux.suse
Subject: Re: not?
Date: Sun, 17 Apr 2022 11:19:10 -0800
Organization: Aioe.org NNTP Server
Message-ID: <t3hp7f$151f$1@gioia.aioe.org>
References: <t3fphu$umm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="37935"; posting-host="lMgZrt+brKvEdFa3M/Ij/A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Sidney_Kotic - Sun, 17 Apr 2022 19:19 UTC

Hmmm...seems like I led you astray. It's not just rm I was interested in.

What I meant was something like this:
not somecondition somecommandwithparameters

not vacation*.gif tar -cf ../vacationjpgs.tar *
or
not *.mp3 cp -v * /someplaceelse
etcetera

Re: not?

<625c90b3$0$498$65785112@news.neostrada.pl>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=505&group=alt.os.linux.suse#505

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: not?
Newsgroups: alt.os.linux.suse
References: <t3fphu$umm$1@gioia.aioe.org> <t3hp7f$151f$1@gioia.aioe.org>
From: marr...@address.invalid (marrgol)
Date: Mon, 18 Apr 2022 00:12:01 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <t3hp7f$151f$1@gioia.aioe.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Lines: 20
Message-ID: <625c90b3$0$498$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 176.111.237.144
X-Trace: 1650233523 unt-rea-a-01.news.neostrada.pl 498 176.111.237.144:42664
X-Complaints-To: abuse@news.neostrada.pl
 by: marrgol - Sun, 17 Apr 2022 22:12 UTC

On 17/04/2022 at 21.19, Sidney_Kotic wrote:
> Hmmm...seems like I led you astray. It's not just rm I was interested in.

> What I meant was something like this:

> not vacation*.gif tar -cf ../vacationjpgs.tar *

tar -cf ../vacationjpgs.tar !(vacation*.gif)

> not *.mp3 cp -v * /someplaceelse

cp -v !(*.mp3) /someplaceelse

> etcetera

RTFbashM

--
mrg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor