Command line stuff

Dexter Filmore Dexter.Filmore at gmx.de
Thu Jan 24 21:24:50 UTC 2008


On Wednesday 23 January 2008 15:57:05 Donn wrote:
> Yo,
> Here's a scene:
> You are in a dir in a console. You have a few consoles (or tabs) open
> around the place. You want to move some files to another dir. You want
> *.jpg but not "blob.jpg". You also want a few pdfs, but not all of them.
> The way I know is a kind of flow like:
> mv *.jpg /some/other/damn/long/path
> cp /some/other/damn/long/path/blob.jpg .
> mv a.pdf b.pdf c.pdf /some/other/damn/long/path
>

Hmm... I'd probably go for piping ls -1 --color=no into "dialog" and tag the 
files with space... but then again, calling mc is faster.


> This means quite a bit of planning (depending on the needs) and a bunch
> path tab completing, up arrow stuff, editing and so on.
>
> Is there some way to select the files you want and copy/cut them to another
> dir - even by going to another console entirely where that dir is  current?

Can't really follow you here. You mean like cut in one console and paste in 
another, where you'd paste them..?
Interesting... the tricky part is storing the "from" path somewhere. After 
all, the work dir is only a shell variable. you' have to select files 
in "from" and store the path and selection.. well, somewhere (/tmp?), then 
call a fetch script in another console that asks for the selection and from 
path in tmp (or whereever).
Still I'd say calling mc is faster.

But for the sheer joy of it lemme know if you find something, I like a good 
hack. Timtowtdi.

Dex


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.vorratsdatenspeicherung.de




More information about the kubuntu-users mailing list