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


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

Re: List files being edited ?

From William Unruh <unruh@invalid.ca>
Newsgroups alt.os.linux.slackware, alt.os.linux.debian, comp.os.linux.misc
Subject Re: List files being edited ?
Date 2015-06-15 15:37 +0000
Organization A noiseless patient Spider
Message-ID <mlmrfl$k33$1@dont-email.me> (permalink)
References <mhdle4$4j6$1@dont-email.me> <mhfl1e$98f$1@dont-email.me> <mhg8m1$b2q$1@dont-email.me> <pan.2015.06.15.13.59.50@gmail.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 2015-06-15, Unknown <dog@gmail.com> wrote:
> On Sat, 25 Apr 2015 14:34:41 +0000, William Unruh wrote:
>
>> On 2015-04-25, no.top.post@gmail.com <no.top.post@gmail.com> wrote:
>>> In article <mhdle4$4j6$1@dont-email.me>, Joe Beanfish
>>> <joebeanfish@nospam.duh> wrote:
>>>
>>>> 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
>> 
>> 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.

What are you talking about. One of the key features of Linux is the
ability to piece together small programs which do one thing well into
programs that do what you want. If you have a better way of
accomplishing what that does, please let me know. Using a bunch of
temporary variables to accomplish what a pipe does is, in my mind, a BAD
habit.

>
> --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"?!

No idea what that sentence means. 
There is nothing that maintains a history, and nothing except mcedit
itself that knows what it is editing now. 
Maybe you need to rething what you want.

>
> --snip --

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