Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Nuclear war can ruin your whole compile." -- Karl Lehenbauer


devel / comp.os.msdos.misc / How do you search for a literal "!" within findstr command using DOS

SubjectAuthor
* How do you search for a literal "!" within findstr command using DOSChris Roberts
+- Re: How do you search for a literal "!" within findstr command using DOSR.Wieser
`- Re: How do you search for a literal "!" within findstr command using DOSJJ

1
How do you search for a literal "!" within findstr command using DOS

<2250630e-5e4d-4a19-8890-0ee2b1b88fb2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20&group=comp.os.msdos.misc#20

  copy link   Newsgroups: comp.os.msdos.misc
X-Received: by 2002:a0c:c709:: with SMTP id w9mr5119602qvi.37.1620323976532;
Thu, 06 May 2021 10:59:36 -0700 (PDT)
X-Received: by 2002:a9d:6c52:: with SMTP id g18mr4620418otq.29.1620323976234;
Thu, 06 May 2021 10:59:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.misc
Date: Thu, 6 May 2021 10:59:35 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=4.79.195.162; posting-account=tSqayAoAAADEbq2bVxu4ODgY7tmW5dUx
NNTP-Posting-Host: 4.79.195.162
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2250630e-5e4d-4a19-8890-0ee2b1b88fb2n@googlegroups.com>
Subject: How do you search for a literal "!" within findstr command using DOS
From: thecjg...@gmail.com (Chris Roberts)
Injection-Date: Thu, 06 May 2021 17:59:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Chris Roberts - Thu, 6 May 2021 17:59 UTC

How do you search for a literal "!" within findstr command using DOS
Can it even be done?

for instance I want to see all the lines in a file that have a "!" in them.
$ findstr -i "\!" file.txt
!(Nope nothing)
Does anyone have any ideas?

Thanks,
Crzzy1

Re: How do you search for a literal "!" within findstr command using DOS

<s71dv9$1l2v$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21&group=comp.os.msdos.misc#21

  copy link   Newsgroups: comp.os.msdos.misc
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.os.msdos.misc
Subject: Re: How do you search for a literal "!" within findstr command using DOS
Date: Thu, 6 May 2021 20:53:16 +0200
Organization: Aioe.org NNTP Server
Lines: 20
Message-ID: <s71dv9$1l2v$1@gioia.aioe.org>
References: <2250630e-5e4d-4a19-8890-0ee2b1b88fb2n@googlegroups.com>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Thu, 6 May 2021 18:53 UTC

Chris,

> How do you search for a literal "!" within findstr command using DOS
....
> $ findstr -i "\!" file.txt

On my version of Windows (DOS doesn't have a "findstr" command or program) ?
Exactly like that.

Well, without that "$ " prefix (no idea what its for or from). And I'm not
sure why you included that "-i", or enclosed that "\!" in double-quotes

Here the minimal working command is :

findstr \! file.text

Regards,
Rudy Wieser

Re: How do you search for a literal "!" within findstr command using DOS

<5z1a69fo1xe5.udpzcnqoppou$.dlg@40tude.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22&group=comp.os.msdos.misc#22

  copy link   Newsgroups: comp.os.msdos.misc
Path: i2pn2.org!i2pn.org!aioe.org!38DygP+ILIZ41NVK6PUULw.user.gioia.aioe.org.POSTED!not-for-mail
From: jj4pub...@gmail.com (JJ)
Newsgroups: comp.os.msdos.misc
Subject: Re: How do you search for a literal "!" within findstr command using DOS
Date: Fri, 7 May 2021 18:50:46 +0700
Organization: Aioe.org NNTP Server
Lines: 14
Message-ID: <5z1a69fo1xe5.udpzcnqoppou$.dlg@40tude.net>
References: <2250630e-5e4d-4a19-8890-0ee2b1b88fb2n@googlegroups.com>
NNTP-Posting-Host: 38DygP+ILIZ41NVK6PUULw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: 40tude_Dialog/2.0.15.84
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Notice: Filtered by postfilter v. 0.9.2
 by: JJ - Fri, 7 May 2021 11:50 UTC

On Thu, 6 May 2021 10:59:35 -0700 (PDT), Chris Roberts wrote:
> How do you search for a literal "!" within findstr command using DOS
> Can it even be done?
>
> for instance I want to see all the lines in a file that have a "!" in them.
> $ findstr -i "\!" file.txt
> !(Nope nothing)
> Does anyone have any ideas?

Is the text file actually has the `!` character, and not the Unicode
characters which look like `!`?

If you're using WINE in Linux, IIRC, you'll have to type the full (EXE) file
name including its extension.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor