Fedora :: Listing Subdirectories With Spaces?

May 19, 2011

I have want to list sub-directories with spaces but am facing the following problem:

My subdirectories are:
FirstDirectory
Directory with spaces
if I use
Code:
for directory in "`find . -type d`"

[Code]...

View 5 Replies


ADVERTISEMENT

General :: Find Files In Subdirectories And Copy Them To Another Directory With The Same Subdirectories?

Nov 18, 2010

This question is very similar to this one except that I want to maintain the file's original subdirectories.

For example if I had

/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt

[Code]...

View 2 Replies View Related

General :: Shell - Rename A File From Something Without Spaces To Something Containing Spaces?

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

Ubuntu :: Firefox Opens File Listing Instead Of Nautilus Opening File Listing

Jun 20, 2010

Firefox opens file listing instead of Nautilus opening file listing.When I access a folder via "Places" -> "Home Folder" or "Places" -> "Downloads", Firefox opens and list the contents of the directory.I have re-installed Nautilus, un-installed Firefox and then going to "Places" -> "Home Folder" or "Places" -> "Downloads" launches Nautilus and I can view the contents normally. Anybody else had this problem with Firefox ? Anybody know how to fix this Firefox problem ?Running Ubuntu Desktop 9.10 64bit.

View 2 Replies View Related

Fedora :: Add X And All Subdirectories Of X To PATH?

Jun 24, 2010

Is there a way in .bashrc to say, instead of "add X to PATH, add X/Y to PATH, add X/Z to PATH", simply "add all subdirectories of X to PATH"?

[code]...

View 4 Replies View Related

Fedora Networking :: Blocking Subdirectories, NOT A Whole Domain/IP?

Aug 8, 2009

So, let's say there was a website www.qwerty.com, which is completely appropriate if not necessary except for the asdfg subfolder (www.qwerty.com/asdfg), which contains,say, pornographic material I want blocked. Is there any way to block "asdfg" without blocking the entire domain (www.qwerty.com)? I already tried editing my hosts file, but apparently that only works for whole domains.Also, while we're at it, can the hosts file be used to actually block IP addresses, or just domain names (so if I wanted qwerty.com with IP of 128.127.126.125 to be completely blocked, but know my family or employees are little smarter than that, I could add the line "0.0.0.0 128.127.126.125" to prevent all access to that website)?

View 3 Replies View Related

Fedora :: Ls Flag For Listing Directories?

Oct 31, 2010

Is the command "ls -d" meant for only listing directories? Because i tried it and it ALWAYS display just a blue dot. If not what is the correct way to show only directories? I.e. MSDOS equivalent "dir /ad".

View 2 Replies View Related

Fedora :: Gvfs Is Very Slow On Listing?

May 12, 2011

As stated , gvfs is extremely slow when browsing smb shares.Mount cifs runs in a third of the time gvfs takes.Often gvfs hangs up while listing.I've searched and see tons of noise about it but no real signal.Does anyone here have any info on gvfs as to why it's so slow browsing?"Name : gvfsArch : x86_64Version : 1.6.2"

View 1 Replies View Related

Fedora :: USB Stick Listing - Sdb Linked To Sda

Jul 19, 2011

I've plugged a usb stick into my server.
cat /proc/partitions
8 0 1981440 sda
8 1 990720 sda1
8 2 436288 sda2

However when I do:
ls /dev/sd*
/dev/sda
/dev/sda1
/dev/sda2
/dev/sdb
/dev/sdb1
/dev/sda2

I'm sure I got no other devices connected that /dev/sdb would point to
cd /sys/block/sda
[root@footy sda]# ll
lrwxrwxrwx 1 root root 0 Jul 18 16:27 device ->
../../devices/pci0000:00/0000:00:03.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0
[root@footy sda]# cd /sys/block/sdb
[root@footy sdb]# ll
lrwxrwxrwx 1 root root 0 Jul 18 16:27 device ->
../../devices/pci0000:00/0000:00:03.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:1

What does this imply, sdb linked to sda?

View 2 Replies View Related

Fedora Hardware :: Complete Specification Listing For RAM

Mar 18, 2010

How do I find the complete specification listing for my RAM? I am getting ready to order another card--need to know what to order.

View 3 Replies View Related

Fedora :: Mv() Command - Tedious Directory Listing?

Oct 22, 2010

Within the mv() command is there any way to not need to type the entire directory location? In the example there are directories with varying depths... I want to move a file from depth 2 to a directory of depth 3 when the directory of depth 3 is within the directory of depth 2. Basically, can I cp() andor mv() a file to a subdirectory without having the enter the entire directory location?

Code:

[root@xxx dir]# ls
dirD1
[root@xxx dir]# cd dirD1/dirD2
[root@xxx dirD2]# ls

[code]....

View 6 Replies View Related

Fedora :: F12 DMRAID Jmicron Missing Library And Extra Spaces?

Dec 2, 2009

things "seem" to work, first time I've really ever used dmraid (usually mdraid), but I'm worried about this error

dmraid -ay
RAID set "jmicron_STORAGE2 " was activated

The dynamic shared library "libdmraid-events-jmicron.so" could not be loaded:

libdmraid-events-jmicron.so: cannot open shared object file: No such file or directory

Two things, why no matter what I name the RAID in the jmicron bios is puts a bagillion spaces after it, and second, I cannot find the missing lib anywhere I've installed all the dmraid* packages.

View 3 Replies View Related

Red Hat / Fedora :: Grub - Recover Without Using A Bootable CD - Fdisk -l Is Not Listing The Partitions

Jan 26, 2010

I am preparing for RHCE. While doing the lab I renamed /etc/grub/grub.conf as grub1.conf. Now (obviously) system boots on grub> prompt. Can I recover without using a bootable CD? Another problem that I encountered was, while doing lab for fdisk, I used command umount -al. Now, fdisk -l is not listing the partitions but giving a message:- /proc/partitions does not exist. If I reboot the system this is restored.

View 1 Replies View Related

Fedora :: Script / Program That Will Give A Listing Of All The Content On My Hard Drive(s)?

Aug 3, 2010

Does anyone know of a script / program that will give me a listing of all the content on my hard drive(s)? I have two drives that I keep my content on (which is re-downloadable if I lose a drive). In the event that I lose a drive, I would like to have a list that I can refer to so I know what I need to re-download again.

It would be good if it doesn't list *every* file but maybe only the relevant folders and files. For example, many folders are extracted archives of 100's of files. If it just gave me the folder name that would be better than all the files (less stuff to sift through).

View 3 Replies View Related

Fedora :: Make A Script In Which Drag A File (with Spaces In File Name )?

Aug 2, 2011

i am trying to make a script in which i can drag a file (with spaces in file name ) and it will scp the file to another computermy code is

Code:
echo "--------------------------------------------"
echo "drag file now"

[code]....

View 7 Replies View Related

Fedora :: "find" Lockup \ Opening Another Xterm Window And Killing The Listing Command?

Oct 12, 2009

I have a problem that I'm not sure how best to debug. About every other time when I boot my system, I get a condition where listing the files in /root locks up that xterm session.This can be cleared by opening another xterm window and killing the listing command. This happens on "ls -a", "find", "tar" and I think "stat" also. The locked up xterm echo's chararcters but does not respond to any control sequences. This is new with FC11.This has only been seen to happen for root. And once a system is booted with this problem it seems to persist until you get it booted without the problem.

View 8 Replies View Related

General :: How To Empty Several Subdirectories

Aug 18, 2010

I looked through google but can't find an answer for this..... say I have a directory called "files"; this directory contains several other directories..... what I wanna do is delete ALL the files within the subdirectories, but NOT delete the subdirectory. Can this be done easily without having to run a command for each subdirectory?

View 8 Replies View Related

General :: Create All Subdirectories Of A Path?

Dec 9, 2010

Is there an easy way to create all subdirectories of a path in linux ?

Something like

mkdir /a/b/c/d/e/f

executed in / should create directories a,b,c,d,e,f

View 2 Replies View Related

Debian :: What Subdirectories Should Be Excluded In Backup

Jan 12, 2011

I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.My question is what subdirectories should be excluded in the backup.

View 6 Replies View Related

General :: Include The Subdirectories In A Chown?

Jul 19, 2010

When I installed a new copy of my distro on another partition, in order to preserve all the settings from my old my user account, I made a user account with the same name on the new installation, and then copied my old user account's files (in their entirety) to the new user account, overwriting it. I did the copying from the root account (where else? I assume the new user account can't overwrite itself while it's open), and root became the owner of everything I copied, making it impossible to open the new user account. So I then chowned the new user account's folder to myself. I still can't get in, because apparently, chown only chowned the top folder, leaving all subdirectories owned by root. How do I make chown include all subdirectories? I scanned the man page, but didn't see a parameter.

View 4 Replies View Related

Server :: Apache On Debian - 403 On All Subdirectories?

Feb 11, 2010

I set up a Debian box with Apache and everything works fine, but when trying to access files in a subdirectory, I get a 403 error. The error log shows the following:

Code:
(13)Permission denied: /var/www/site/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
I tried adding a <Directory> entry in the conf file for the site and even tried adding (with +r for all) an .htaccess file (.htaccess is not specified in the conf file and the root directory doesn't have one either), but nothing works.

[Code]...

View 1 Replies View Related

Server :: Create SUBdirectories In Dovecot?

Jun 19, 2011

I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot.I just stardet a mail server and when i tried to create it from the mail client (MS Outlook) it says that the server wont allow it.

View 4 Replies View Related

Software :: Find Not Searching Subdirectories?

Jul 12, 2010

I tried searching for files in documents: joe@Debian:~/documents$ find -iname *.odt ./canadian-public-holidays.odt I then moved to the work_search directory which is located in documents: cd work_search joe@Debian:~/documents/work_search$

joe@Debian:~/documents/work_search$ find -iname *.odt

[Code]...

View 6 Replies View Related

Slackware :: Move Files From Within Many Subdirectories To Another One?

Jun 25, 2011

I have a large directory tree with my ebooks and some of these files are zipped. I would like to move all of the zip files to another one so I can manipulate them. Since they are all scattered inside the tree, I would like to do it quickly and painfully with CLI. How should I proceed?

[code]...

View 10 Replies View Related

OpenSUSE Network :: Nfs And /etc/exports - Excluding Certain Subdirectories

Jun 30, 2011

I have a nfs share on my 11.4 workstation at /abcd. I'd like to export everything under /abcd except for one directory /abcd/dontexport

I searched online for such an option but only came across noaccess option which doesn't seem to work.

exportfs says it is an unrecognized option if I run "exportfs -ra"

This is how my /etc/exports looks like:

Code:
/abcd*(rw,wdelay,root_squash,no_subtree_check,anonuid=12345,anongid=6789)

View 2 Replies View Related

General :: Delete Matching Files In All Subdirectories?

Feb 22, 2010

How can I remove all .swp files in all of my subdirectories under Linux?

View 4 Replies View Related

Ubuntu :: Bash To Sort Files Into Subdirectories?

Sep 4, 2010

i currently have hundreds of files all in a single directory. What I would like to do is create 8 subdirectories and move the files into the subdirectories based on the first character of the file name. Ideally, the script would omit any 'the' or 'a' and use the second word for filing purposes. No filenames have spaces. Instead they use periodsThe subdirectories will be:

0-9
a-d
e-h

[code]...

View 2 Replies View Related

Ubuntu Networking :: Sharing Directory, And It's Subdirectories?

Oct 20, 2010

I've been doing some file-sharing with Ubuntu. And I've noticed that the files only in the immediate directory is shared, the rest of the folders are shown in other PCs but access is denied. How can I share all the subdirectories in a folder without having to them manually?

View 6 Replies View Related

Ubuntu :: Icons For Subdirectories Of User's Folder?

Nov 24, 2010

I figured I'd try out the Ubuntu Minimal install; I liked the concept of minimal distros like Arch-Linux (with a what-you-need-is-what-you-get type of system), but I really liked the community and general support of Ubuntu. Anyway, everything went fine after I got GRUB working properly, up to the point when I found that there were no subdirectories in my user's folder (Templates, Documents, Videos, etc).

I just decided to create the folders I needed. However, there were two issues I came across when doing this: The items in the 'Templates' folder don't show up in the context menu like they should More importantly, the icons for each folder would have to be manually changed for every new icon theme (if I wanted to use a new icon theme, I would have to navigate to the theme's folder every time for each icon I wanted changed) I'm not too concerned with the templates at the moment, but I was wondering how I would make these icons dependent on the current icon theme. Is there some package I missed installing?

By the way, if it makes a difference, I'm trying to set up the default Humanity icon set (well, not default for me, since I'm using Ubuntu Minimal). Also, sorry if this question has been posted before (or if I find the solution immediately after posting, which almost always happens to me), I didn't know exactly what to search for...

View 2 Replies View Related

Software :: RAR Not Including Subdirectories - Warning No File

Oct 19, 2010

I am trying to create a script.

$test=exec ("rar a -r -v10M /var/www/html/utl/packed/folder.rar /var/www/html/utl/Downloads/folder/");

There is no files in /var/www/html/utl/Downloads/folder/ but a few folders are there which need to be added to folder.rar I am using correct exec and outputting it in php but output shows me Warning: No files.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved