Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: Ridiculous Online Programming "Advice" Date: 11 Jan 2026 07:31:34 GMT Lines: 16 Message-ID: References: <546dnQ79vYkSZP_0nZ2dnZfqnPSdnZ2d@giganews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net s/6OBnBzmgzQ7w+KM+yUMQAYzeNGIFKavdYC8CzAeZ5rzM6xDS Cancel-Lock: sha1:E/BMtAGWhkZbi5EuI7QuhRID6d8= sha256:TNu8rloHFxAO9Gif81fMqpS8VTKITRMv/2+HLoA43WU= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:80892 On Sat, 10 Jan 2026 20:14:49 -0500, c186282 wrote: > def AmRunning(ss) : > return os.popen("ps ax").read().count(ss) # get, unwrap, count .bashrc AmRunning() { ps aux | grep $1 | wc -l } $ AmRunning brave 32 Before Linux distros mostly switched to bash I used tcsh. You could do a lot more with alias without having to write a function.