Ubuntu :: Bulk Find & Copy In Terminal?
Mar 29, 2010
I have found KRename to be very useful for bulk find and renames; however, I'd like to do a find a copy, which KRename doesn't appear to do.
For example, I'd like to (case insensitively) search all subdirectories for files called "cover.jpg", "cover.gif", or "cover.png" and create a copy of these called "thumb.xxx", in the same subdirectory the original is found, with the same extension as the original.
View 4 Replies
ADVERTISEMENT
Nov 12, 2009
I've been spinning my wheels for a bit on this one not getting any traction. I have a list of pictures that have a bad extension that I would like to rename with the good extension. Here's a snippet of the list that I'm looking at:
listold
Code:
/Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3347.JPG
/Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3349.JPG
/Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3350.JPG
/Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3354.JPG
[Code]....
View 6 Replies
View Related
Jul 9, 2010
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
View 1 Replies
View Related
May 18, 2011
shell scripting in Fedora14I want a script"Find in curent folder for files, and it copy first file he find with name gived by user, if name already exist then echo error message and finish"command usage " bash scriptname copyASname"
smthing like Code: #!/bin/bash
for files in /home/user/*
do
[code]....
View 1 Replies
View Related
Jul 14, 2010
I'm running Lucid, and whenever I run a program in gnome-terminal that captures the mouse (dvtm, elinks, mc) I cannot highlight any text, which prevents me from copying any text from the terminal.
View 2 Replies
View Related
Aug 26, 2010
I'm attempting to write a bash script to retrieve information from a websitemy problem is I can't seem to figure out how to simply copy the text from the website (I have tried multiple text-only browsers but they all seem to require some input to be able to do this where I'm looking for it to be done silentlyThe purpose of this is I have created a google doc that is a bash script itself and I want the one I'm writing to download this bash script and execute it (the original will be hard coded on a cd and I'm doing it this way for easy updating) only thing is when I use wget it downloads the html file with the script embedded in it and not the script itself
View 3 Replies
View Related
Jan 25, 2011
I found this great script that let me add a open as admin option to my right clickso I was wondering if anyone knows of or can whip up a script that would let me highlight text for example on a web page right click and have an option to open and terminal and paste the text with one click.Instead of highlighting text right clicking selecting copy, then opening terminal and pasting manually. just an idea I had for a time saver but what I have tried didnt work right
View 3 Replies
View Related
May 29, 2011
I installed the LAMP packages and got them up and running.
Now I want to use a cms: modx and I need to copy paste the cms files in the root folder. But I am not able to paste anything in the root folder. I figured out that apache directories are readonly for a general user. So how do I paste that as a super user? I know about the sudo command but that works only in the terminal. Is there a command to copy paste the whole directory from the terminal?
View 1 Replies
View Related
Jun 24, 2011
I wish to copy o/p of lsusb command to gedit.But I am getting following error>
root@jay-laptop:/home/jay/proj# lsusb -v |
gedit No protocol specified
(gedit:4310): Gtk-WARNING **: cannot open display: :0.0
root@jay-laptop:/home/jay/proj# lsusb -v | gedit hi
No protocol specified
View 9 Replies
View Related
Jan 27, 2010
I have been sitting here practising linux commands and I cannot seem to copy a picture from home/pictures to the desktop, specifically a folder I created on the desktop "test"
View 4 Replies
View Related
Sep 11, 2010
im using ubuntu 10.04 sometimes i find more useful to use the terminal to copy or move folders or files to other directories (more important when they need admin permission)
today i tried to copy ALL files from a directory to another. and i realized that i dont know. i know that that "~ mv /ThisThing/ /ThisFolder/" "~ cp /ThisThing/ /ThisFolder/" but howould i be able to copy EVERYTHING from a folder into another. tis is diferent from copying the folder itself (which i also would like to know)i bet is a simple thing that i havent figured out!
View 5 Replies
View Related
Jun 2, 2011
how can I either copy a file (say, ~/file.txt) directly to the flash drive? I know that I can use the command
Code:
sudo cp ~/file.txt ???
to copy it, but what goes in the question marks?
View 1 Replies
View Related
Jul 2, 2010
i have been created DB at server..i'm using XAMPP..how to copy the database from server PC using terminal..
View 1 Replies
View Related
Mar 9, 2009
After searching I cant find script that can deal with directories. All the found scripts work file to file and not directory to directory. Someone know script that can deal with all this situation?
View 8 Replies
View Related
Jun 4, 2011
I can find no way to copy a cd to ISO in 11.04, either GUI or CLI. Brasero does not have .iso option though the brasero-cdrkit is installed and is latest version. Evidently the /dev/cdrom is no longer used? I'm not sure what's going on there but anytime I try to use dd or cat I get and Input/Output error.
View 9 Replies
View Related
Feb 24, 2010
In windows using remote desktop connection you can press Ctrl+Alt+minus to copy the current window on the remote desktop to the clipboard. How do you do that in Ubuntu's terminal server client? I have not found any key combination that works
View 2 Replies
View Related
Apr 10, 2010
I got a text file. Now I want to write a line by its number in a bash variable. That is all.
View 1 Replies
View Related
Dec 10, 2010
if we type a command such as "locate somefilename" in the terminal we will get all the paths to the file name as output. If i want to copy only one line from that output how do i do that without using mouse?i need terminal short cut to copy one line
View 8 Replies
View Related
Mar 28, 2010
What is the best way to copy and paste some text among text documents in Linux terminal environment? Suppose I have 2 documents, A and B, and I want to copy some part of A to B. What is the way to achieve this?
View 5 Replies
View Related
Jul 15, 2010
I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?
View 13 Replies
View Related
Oct 26, 2010
I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>
View 2 Replies
View Related
Jan 13, 2011
i use uxrvt ( for those who dont know, its terminal emulator based on xterm).i know its easy to copy/paste stuff from terminal to itself is a trivial thing. it can be done by mouse left click to select and middle click to paste.but in my case i need to copy text from terminal to another application, viz on google chromium.
View 1 Replies
View Related
Aug 19, 2010
I am new both here and in Linux. As the subject says, I would like to learn how to copy a directory (not a file) from terminal with progress bar showing. The copy is local, i.e., not to another computer. My distro is CentOS 5.5. I know that if I do it with nautilus I would see the progress, but I want to learn how to do it from the terminal. I know that PV command can show a progress bar, but from what I saw, it works well for files, but not for directories (recursive).
Is it possible to use PV for directories? If yes, could you please show me the syntax? I also saw that some people mentioned that rsync can also show a progress bar, I tried to do it, but it didn't work out - perhaps I got the syntax wrong. If rsync can really be used to copy directories with progress bar, show me the syntax? Any other ideas on how to do it? I would like ideas that do not involve using any script, i.e., just something that I can do using the regular commands.
View 6 Replies
View Related
Sep 1, 2010
I installed a new music application. It reads covers.jpg as the cover of the album, however, my covers files where named album. I dont want to rename, I want to make a copy of album.jpg and if possible as well rename it to covers.jpg. The file has to be in the same folder that it currently is. I have looked around to see how I can do this but have not been able to.
View 14 Replies
View Related
Nov 19, 2010
I have the following code and would like to copy all the found files within the if then loop.
Code:
I can pipe it to a file then run a smbclient get on the file listing but there must be a better way to do this.
View 4 Replies
View Related
Jun 1, 2010
I have this treacherous program in C which uses external static libraries (extern etc), and want to do a coverage test of it. The libraries are written in fortran. I compile like this Code: gcc -fprofile-arcs -ftest-coverage -o main main.c library.o I run my nice program like that
Code: ./main Then I do the magic stuff
Code: gcov main.c library.f
Ok 98% of the lines were used in main.c, and I get a file with line counts and all that. Great! But, I need to know the coverage in my library too! It says 0.0% and that's impossible. So what can I do? I can't run it like an executable because it's a library.
And why is the terminal not accepting my copy paste? I copy some lines from my IDE, then I want to paste it into the terminal (with ctrl-v of course, not some crazy local application non-standard counter-intuitive key combo made just to cause agony among honest users!), and that could've been the only problem here, but it isn't. I can't even paste with that right click menu. So, if I was crazy before, I went nuts after that. My great "solution" was to paste it into the firefox URL field (not the search field ) and then copy that and paste it into the terminal. Is that common practice for you all while dealing with that unburied DOS-window?
View 1 Replies
View Related
Jun 29, 2011
I installed Slackware 13.37 current 32 bit (kernel 2.6.38.7-smp) last saturday and almost everything works fine. I don't understand why I cannot use Ctrl-Ins and Shift-Ins shortcuts for copy and paste in console terminal. Shortcuts works fine in X terminal (fluxbox) Konsole... but they don't in text console.
View 2 Replies
View Related
Jul 6, 2011
i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.
View 1 Replies
View Related
Feb 25, 2010
I want to find files of a particular tyepe and particular date to be copied into a seperate folder.How do i do achieve this in a single line using the find and copy command.
View 8 Replies
View Related
Jan 14, 2011
This command would copy the files to the local directory,find /mnt/nas -type f -ctime 1 -iname '*.avi' -exec rsync -av {} /mnt/Mythbuntu
View 1 Replies
View Related