Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #14621

Re: List files being edited ?

From Joe Beanfish <joebeanfish@nospam.duh>
Newsgroups alt.os.linux.slackware, alt.os.linux.debian, comp.os.linux.misc
Subject Re: List files being edited ?
Date 2015-04-24 14:53 +0000
Organization A noiseless patient Spider
Message-ID <mhdle4$4j6$1@dont-email.me> (permalink)
References <mhcdbc$vnf$1@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


On Fri, 24 Apr 2015 03:29:49 +0000, no.top.post wrote:
> What's the script to list all the files <open under mcedit>?
> It's for human consuption, so need not be 'clean';

Perhaps

awk '/mcedi[t]/{gsub("\0"," ");print}' /proc/*/cmdline

Of course that assumes the user hasn't switched files since
starting mcedit.

The [t] after mcedi prevents awk from matching itself.
Also print FILENAME if you want the PID of the process.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

List files being edited ? no.top.post@gmail.com - 2015-04-24 03:29 +0000
  Re: List files being edited ? Joe Beanfish <joebeanfish@nospam.duh> - 2015-04-24 14:53 +0000
    Re: List files being edited ? no.top.post@gmail.com - 2015-04-25 08:59 +0000
      Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-04-25 14:34 +0000
        Re: List files being edited ? Helmut@Hullen.de (Helmut Hullen) - 2015-04-25 18:26 +0200
        Re: List files being edited ? Unknown <dog@gmail.com> - 2015-06-15 13:58 +0000
          Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-06-15 15:37 +0000
            Re: List files being edited ? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-06-15 20:10 +0300
          Re: List files being edited ? "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2015-06-15 20:51 +0200
            Re: List files being edited ? William Unruh <unruh@invalid.ca> - 2015-06-17 03:53 +0000

csiph-web