You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
echo -e "\nPaste a list and press
Ctrl+d\n";l=$(</dev/stdin);echo;a="Edit command line";read -ep "$a
start: " -i "cp -a" c;read -ep "$a end: " -i "~/backup" p;echo -e
"\nSkip single step with Ctrl+u\n";for i in $l;do read -ep "> " -i "$c
$i $p" w; eval "$w";done
Above command will enable you to:
1. Paste a list in console screen
2. Write a command
3. Execute
The command will repeat, every time
with new argument read from the list
Syntax:
<command line start><argument from the list><command line end>
Hint:
Paste a column or list of data from anywhere. I.e. utilize the Block
Select Mode to drag, select and copy columns (In KDE Konsole with
Ctrl+Alt pressed, or only Ctrl pressed in GNOME Terminal respectively).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On Sat, 11 May 2013 17:57:50 +0200, Luka Ćavara wrote:
> echo -e "\nPaste a list and press
> Ctrl+d\n";l=$(</dev/stdin);echo;a="Edit command line";read -ep "$a
> start: " -i "cp -a" c;read -ep "$a end: " -i "~/backup" p;echo -e
> "\nSkip single step with Ctrl+u\n";for i in $l;do read -ep "> " -i "$c
> $i $p" w; eval "$w";done
>
> Above command will enable you to:
Ti se danas ne osjecas dobro?
>
> 1. Paste a list in console screen 2. Write a command 3. Execute
>
> The command will repeat, every time with new argument read from the list
Ah, radi se o verziji "xargs"? Da, to mi djeluje prakticno, umjesto
"xargs" bih trebao samo natipkati gornju monstruoznu p*dariju i voila,
svi moji problemi su rijeseni.