LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Bash/command line - minor variable "editing" without sed

Posted 07-14-2014 at 12:38 AM by the dsc (linux-related notes)
Updated 07-14-2014 at 03:02 PM by the dsc

Code:
$ a=lilolal ; echo ${a/lal/uuu}
lilouuu
To move files "copied" on clipboard (Konqueror/perhaps dolphin) to the place you're on a terminal, without navigating/browsing the folders on the file manager, one can use:

xsel -b | while read f ; do mv -i "${f#*file://}" ./ ; done

As "copied" files on Konqueror are registered on the clipboard as a list with "file://" preceding the path. Perhaps could be aliased...
Member
Posted in Uncategorized
Views 172 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration