Ubuntu :: App Or Script That Finds Directorys & Files With Spaces?
Jan 4, 2010
i need an application or shell script that can identify all the directories and files in a certain directory and can rename them to remove any spaces in the filenames.anyone know of anything that can do this?
View 9 Replies
ADVERTISEMENT
Sep 4, 2011
I have created 2 users in Opensuse 11.4 but when logged on as either I can access the others directorys and files, how can I encrypted these so a user cannot access the others files.
View 2 Replies
View Related
Mar 22, 2010
i have a lot off windows - thumbs.db files om my Debian Apache server.How to remove all (without define all directory's)Is there any way with RM?- or maybe some other smart solution to do it?
View 8 Replies
View Related
Sep 22, 2010
got a whole lot of video files spread among 100's of folders, wondering if Linux has a program that can scan the modification and view dates of them all, and just display what's been accessed most recently.
View 4 Replies
View Related
Oct 27, 2010
I am trying to use sed to replace a bunch of text in several hundred files, so I have this bash script that should iterate through all my files. It looks like this:
#! /bin/sh
for php in *.php; do
./run.sed $php
[code]...
View 10 Replies
View Related
Jan 15, 2011
I accidentally permanently deleted a few files and I was wondering if there was a program that finds the files that were deleted and restores them?
View 4 Replies
View Related
Jan 19, 2011
can I index files so whenever I do a find somethingdo find / -name libSDL-1.2.so.0It doesn't take 10 mins. I do know there are packages such as tracker but that one does indexing all the time. I would be happy to have something which can be done by hand or something which is done once in 12 hours or so.
View 2 Replies
View Related
Jul 20, 2011
I don't know how to fix this command:
Code:
sudo chmod 700 *
when in the folder some files have the space character in the name. I have this error (sorry, italian version):
Code:
chmod: opzione non valida -- " "
translated is 'invalid option'. I have to chmod any single file with "", but it takes too much time...
View 4 Replies
View Related
Jan 26, 2010
Is it possible, in Linux, to rename a file from something without spaces to something containing spaces? I know I can create directories and files with spaces by doing:
mkdir "new dir" and:
touch "new file.txt"
I want to rename files from:
imgp0882.jpg to something like:
20091231 1243 some topic.jpg
And how would it look in a shell script that uses parameters like:
for i in *.jpg do
rename "$i" "$somepath/$mydate $mytime $mytopic$extension"
?
I'm new to Linux (using PCLinuxOS 2009.2), coming from Windows, and I've written myself a little shell script to download files from my camera and then automatically rename them according to a date-and-topic pattern. As you can guess by now, I'm stuck on the bit about renaming. If you want to see my script, here's a copy. I'm not using jhead for this renaming because that only works with JPEG files but I want a single solution for any media format including videos.
View 2 Replies
View Related
May 15, 2011
ffmpegthumbnailer is not working on files with spaces in their names. If i rename the file with no spaces then it creates a thumbnail with no problem.
View 4 Replies
View Related
Jul 2, 2010
I have a lot of files with tabs littered throughout, and I'd like to convert them all into spaces. I know about the expand command, but unfortunately I would have to type out every single file using it. Is there any easier way to do this on Linux?
View 2 Replies
View Related
Oct 3, 2010
One system send files to linux machine and it is name contains spaces and I tried to move it from one directory to other, but it show error:
Ex:-
mv -f file one file two
mv: target 'one' is not a directory
View 6 Replies
View Related
Mar 17, 2011
How do I access files with spaces from the command line?
for example I want to go to a file called "New File" and let's say is in Downloads/Books/(and here is the file)
how do I input the space since the command line doesn't recognize it?
View 2 Replies
View Related
Apr 1, 2011
*I'm using Ubuntu 10.10
My issue is I can't handle the files with spaces in their name, I've donde the below script to print each file found inside folder and subbfolders with "find".
I would like to "ls" to each file found with its complete path and with its basename too.
Code:
files=$(find . -type f)
for each in "$files"
do
ls -l "$each" # 1rst option I've tried to list with full path
ls -l "$(/bin/echo "$each")" # 2nd option I've tried to list with full path
ls -l "$(/bin/echo $(basename "$each"))" # 1nd option I've tried to list with it basename
[Code].....
How can I list "ls -l" in both cases (with full path and with basename) when there are files with spaces in their name?
View 6 Replies
View Related
Jun 8, 2011
I named a number of files with spaces in them, and I want to replace the space with "_". However, every time I write a command in the shell with the file name (eg "Spring 2011"), the shell doesn't recognize the file or directory. What can I do about this? Is there any way to use the unicode character for a space?
View 5 Replies
View Related
May 14, 2011
I would like to accomplish: 1. Users to have access to their own Share on the server, no one exept the user shall be able to browse, read/write. (sould the user directories be in /home/<username> folder or shall one use another structure?
2. There shall be a public are where all users can browse, read and write. no guests, only users who have accounts!
3. A GroupShare. Users who are members of group Staff many browse, read/write.
4. Add some directorys for private use (to see how it works)
So would this be correct: Create the Directory Structure on the server:
Code:
# mkdir /usr/smbroot
# mkdir /usr/smbroot/users
# mkdir /usr/smbroot/public
# mkdir /usr/smbroot/groups/staff
# mkdir /usr/smbroot/private/fredrik_extended
or shall one use the default user shares /usr/<username>/?
[Code]...
View 1 Replies
View Related
Jun 17, 2010
A long time ago I came here with a query about comparing directory structures so that I could ensure I had 2 copies of all of my mp3's - 1 in high quality and 1 in portable quality. The original thread is here [url]
Now time has moved on I have begun to encode to flac, and I want to find and delete any mp3's that I now have as flac.
The problem is, the file names are not always identical AND the extensions are different, meaning the command in the previous thread doesn't get me very far.
The music is stored in the format of /home/music/mp3/Artist/Album/ and /home/music/flac/Artist/Album/ if I could just get a list of all the "album" subfolders which are duplicated I could work the rest by hand.
View 2 Replies
View Related
May 5, 2011
I've got problem with Avahi on my laptop. It can see the other machines and services on the LAN but not it's own local services and I have no idea why. The laptop (hostname: forseti) sports Ubuntu 10.10, installed aavahi-daemon, avahi-dnsconfd and libapache2-mod-dnssd. Firewall is disabled. Other hosts on the LAN are: magni (openSuSE 11.4 with lots of services published and visible from forseti) and freya (Ubuntu 10.10 with gnome-user-share up & running). Forseti can see the other hosts and their services but not itself. The other hosts can't see forseti. Checked both with nautilus and CLI's avahi-browse.
View 1 Replies
View Related
Jul 31, 2011
I ran grub-customiser to set default kernel, and saw the GFX mode setting, thinking "Hey, my monitor is native at 1440x900! I'll use that!" ...Didn't think about how the GFX card isn't initialized at that point, so my res is limited to 640x480... So the first problem was a system hang at the grub menu, with "Input Not Supported" displayed on the monitor.I changed the GFX mode back, and ran update-grub, and with a grin on my face, I rebooted. The grin went away fast, when I saw that none of the kernels showed in the grub menu, and I have only the two memtest entries. It appears that, while all the files are still intact, grub is not seeing the kernels. I had an idle partition of about 13 GB on hand, so after trying all sorts of things, I did a clean install on the little 13 GB partition. Still no dice, after doing an apt-get purge grub etc etc etc on my main Ubuntu partition, to make sure that the new grub was running. I still have only memtest, even though I can open the /boot directory and see the kernel files. I tried going into the grub command line and starting manually, but tab-complete does not suggest any of the kernel files, and tells me that the files do not exist, if I type in their full names.
View 6 Replies
View Related
May 16, 2010
I need to write a script that can search up to 3 parameters and find all files containing those words. then display them and the amount of hits it got.if the first parameter exists, then we can assume we are looking for the word supplied.if the second parameter exists, then we are looking for files with both keywords.if third parameter exists test the second parameter for the values ('and', 'or', '-v') and search accordingly. These are the only values accepted as the the second one when 3 parameters are present.
lastly, if there are zero or more than three parameters echo as an error and when 3 parameters have been entered we echo an error when the second parameter is not one of the following: 'and', 'or', '-v'.
View 1 Replies
View Related
Jun 6, 2010
Ive installed 10.04 on my laptop and notebook. It works perfectly on laptop. On notebook the problem is it finds no Wireless network and just says disconnected. I have no idea how to connect it, I tried reinstalling Ubuntu but no luck. I tried looking it up on internet but no luck in finding help. its an MSI U130. The wireless is defently turned on.
View 7 Replies
View Related
Oct 1, 2010
Would like to use Ubuntu Tweak on 10.10 beta. Is it safe to remove everything that its cleaning section finds? Or do I have to look carefully at what it removes? Can I just let it remove everything it finds and not worry that something I have installed will be affected?
View 2 Replies
View Related
Dec 4, 2010
I've installed ubuntu on my laptop, but I've got one problem... I can't see my wireless Internet?
On my mac I see my wireless Internet i click on it, put the password in and I'm connected, but on my ubuntu he doesn't show the wireless Internet?
When i connect via cable I've got Internet so i think it can't be my network card because else he wouldn't connect via cable not?
View 9 Replies
View Related
Mar 4, 2011
ClamAV tells me that three of my OpenOffice.org Calc spreadsheets may be infected (status "MBL_144360.UNOFFICIAL", if that means anything). This seems not entirely implausible, since yesterday I used a USB stick to transfer files from a Windows system. Anyway, I'd really like to keep these spreadsheets. Can I disinfect them somehow?
View 2 Replies
View Related
May 20, 2011
So I was the one who couldn't get their ethernet port to function properly. Most likely, this was the result of bad hardware since none of the community's suggestions for software fixes did anything. I believe this is probably true.Indeed, when I bought a cheap $10 wireless USB dongle, it immediately worked better than all the previous things. It detected networks, displayed network strength and even allowed me to attempt login.
The only problem now seems to be that it cannot login. I've rechecked the password countless times, but it just shows the 'connecting to wireless' animation for a minute or two and then poops out and says, 'disconnected'.I assume if everything is getting me this far, the driver is not the problem with the device. Is this a safe assumption?
View 2 Replies
View Related
Mar 9, 2010
I'm running a syslog server on ubuntu 7.04. Can I somehow have it email me if it finds a certain thing in the log? For example. I'm running a PRI and when the PRI goes down, it logs a "DEACTIVED" in the log. I would like an email telling me this so I know to get on it and fix it.
View 9 Replies
View Related
Nov 14, 2015
I am running Wheezy 7.9 (32 bit) and using Gnome Classic desktop. I have recently had several issues with system "crashes" and such, see some of my recent posts, and for now things seem to be working okay. As part of my attempts to "fix" the problems I looked at the hard drive using the SMART disk utility, and also ran "smartctl". The SMART utility reports that there are 3 bad sectors on the drive. When I run fsck, from a live CD, it does not report finding bad sectors. So why would fsck not find something that is reported by smartctl? Which one should I believe?
As a precaution I am now making daily backups of my /home directory and purchased a new HD just in case. Have not yet installed the new HD but at least I am prepared.
View 10 Replies
View Related
Oct 14, 2010
I can't for the life of me figure out why I cannot browse my own shares from my linux boxes. both run OpenSuSE 11.3 I follow swerdna's tutorials and reboot several times but don't have a clue as to whats going on to prevent me from viewing localhost shares or 2nd linux box shares. I get 'unable to mount location, Failed to retrieve share list from server' error when I click on my workgroup icon in nautilus.
View 7 Replies
View Related
Mar 9, 2010
i have the huawei 1550 3g modem (prepaid) tele2 and a nokia 5800 both working on on other dists,installed vwdial and vwdialconf finds the nokia and and recognize it as a modem.vwdial connects and hang up kppp same story. what is the deal with the phone? i have all the settings right it should really just work. And the usbmodem it seems like i need usb_modeswitch but i cant compile i properly and the slackbuild is broken/old.
View 13 Replies
View Related
Jan 13, 2010
I bought a Letux 400 mini netbook and it works fine except for wireless Ethernet. It finds wireless networks, including mine, and then pretends to connect, after asking for a password, but finally never connects. I tried reconfiguring the wireless network from g to b/g and finally to b only, but nothing changed. Cable connection works. Unfortunately all relevant Letux Web pages are hopelessly slow and certainly too slow to use the forum and ask questions there. why the thing doesn't connect and how to make it connect? If it recognises networks, shouldn't it be able to connect as well?
View 1 Replies
View Related