Unix Shell - midnight-commmander question

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2007 > midnight-commmander question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author midnight-commmander question
Troy Piggins

2007-02-19, 1:21 am

Firstly I'll apologise - I have no idea where to post this, so
c.u.s was my first port of call. If there is a more relevant
group, please let me know.

I have a directory containing a lot of files. I want to pass the
filenames from some of them through a bash script I've written.
Unfortunately there is no pattern to make processing them obvious
from the commandline, and there are enough of them to make typing
in their filenames by hand painful.

I was thinking it is very simple to tag files with midnight
commander, but once tagged I am not sure how to pass the
filenames to my script. It is the filenames I want passed, not
piping the body of them.

I see once I've tagged the files, hitting 'F9' to get the menu,
'F2' for 'user menu', then '@' for 'Do something on the tagged
files' but I have the feeling that pipes them.

Any ideas?

--
Troy Piggins ,-O (o- O All your sigs are belong to us.
http://piggo.com/~troy O ) //\ O
RLU#415538 `-O V_/_ OOO
hackerkey:// v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t
5MGSRb8OTen4g7OPa3Xs7MIr8p7
Bill Marcum

2007-02-19, 7:20 am

On Mon, 19 Feb 2007 15:44:57 +1000, Troy Piggins
<usenet-0702@piggo.com> wrote:
>
>
> Firstly I'll apologise - I have no idea where to post this, so
> c.u.s was my first port of call. If there is a more relevant
> group, please let me know.
>
> I have a directory containing a lot of files. I want to pass the
> filenames from some of them through a bash script I've written.
> Unfortunately there is no pattern to make processing them obvious
> from the commandline, and there are enough of them to make typing
> in their filenames by hand painful.
>
> I was thinking it is very simple to tag files with midnight
> commander, but once tagged I am not sure how to pass the
> filenames to my script. It is the filenames I want passed, not
> piping the body of them.
>

Ctrl-X t or %t or %s. See F1, "contents", "Shell command line" or "Macro
substitution", if your version of mc includes the help file.

> I see once I've tagged the files, hitting 'F9' to get the menu,
> 'F2' for 'user menu', then '@' for 'Do something on the tagged
> files' but I have the feeling that pipes them.
>
> Any ideas?
>



--
Hark ye, Clinker, you are a most notorious offender. You stand convicted of
sickness, hunger, wretchedness, and want.
-- Tobias Smollet
Troy Piggins

2007-02-19, 7:15 pm

* Bill Marcum is quoted & my replies are inline below :
> On Mon, 19 Feb 2007 15:44:57 +1000, Troy Piggins
> <usenet-0702@piggo.com> wrote:
> Ctrl-X t or %t or %s. See F1, "contents", "Shell command line" or "Macro
> substitution", if your version of mc includes the help file.


Excellent. Thankyou.

--
Troy Piggins ,-O (o- O All your sigs are belong to us.
http://piggo.com/~troy O ) //\ O
RLU#415538 `-O V_/_ OOO
hackerkey:// v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t
5MGSRb8OTen4g7OPa3Xs7MIr8p7
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com