Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Unknown Newsgroups: alt.os.linux.slackware,alt.os.linux.debian,comp.os.linux.misc Subject: Re: List files being edited ? Date: Mon, 15 Jun 2015 13:58:08 +0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 15 Jun 2015 13:58:08 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="17611d4dc3ca4f92eb8f7a75ac4f246a"; logging-data="28972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lFdVy+QfWVlWx7kXG3sWjO520y4cempk=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:d58jAwxemPiYapz6lc3f4oeWZ2k= Xref: csiph.com comp.os.linux.misc:14942 On Sat, 25 Apr 2015 14:34:41 +0000, William Unruh wrote: > On 2015-04-25, no.top.post@gmail.com wrote: >> In article , Joe Beanfish >> wrote: >> >>> On Fri, 24 Apr 2015 03:29:49 +0000, no.top.post wrote: >>> > What's the script to list all the files ? It's >>> > for human consuption, so need not be 'clean'; >>> >>> Perhaps >>> >>> awk '/mcedi[t]/{gsub("\0"," ");print}' /proc/*/cmdline > > Or > ps auxww |grep mcedit|grep -v grep > I have that as an alias > function psg () { ps axww -o "%U %G %p %C %z %y %t %x %a"| egrep > $*\|'^USER '| grep -v grep ;} IMO one-line-ism is a BAD habit. This is completely out of control. --snip-- >>> Of course that assumes the user hasn't switched files since starting >>> mcedit. ?? The whole aim is to be able to look back-in-history, since the user MULTIPLY "switched files since starting mcedit"?! --snip --