General :: Find Statement For Multiple Folder Names?

Jan 21, 2010

right now i'm doing a find . -type d -iname "z*" to find all folders who's name starts with z or Z.

Is there a way I could with one command find all folders who's name starts with the letters M through Z, without having to do the same command over and over and just changing the letter each time?

View 15 Replies


ADVERTISEMENT

General :: If Statement With Multiple Tasks?

Feb 2, 2011

I want to have an if statement that does multiple things:

Code:

if [....] ; then
1=...
2=...

[code]....

View 3 Replies View Related

General :: Mount A Folder Names Sever Under Apps Folder?

Feb 4, 2010

In the linux machine we need to mount a folder names sever under apps folder with the user as steve. Also the steve user should have the permission to create the files in the folder. As of now, its mounted as root user.steve is in list of sudo users.

View 4 Replies View Related

General :: Find A Relative Statement Of Each Kernel Process?

Apr 23, 2011

as the title,I want learn how it works.

View 1 Replies View Related

Software :: Send E-mail To Multiple Receivers And No One Can Find The Other Receivers' Names

Nov 4, 2010

Is there a way to send personalized bulk emails ? That is sending mails to a group of people without each of them knowing about each other's email address (without using BCC). Also, with each person having only his own mail address in the 'To' field.

the way may be like setting any option in hotmail.com or via any mail client [thunderbird is preferd]or via any add-on for browser or mail-client.

refrence page :

[URL]

View 3 Replies View Related

General :: Extract To Multiple Directories Based On File Names?

Jan 30, 2009

I'm not sure if this is possible or even where to start. I assume that this can be done with an sh script using tar or similar.I have several very large zip files that contain images for all of the products in my online store. Each image is named after its 13 digit SKU (for example, 9987788000012.jpg). In order to import products into my store, all images are placed into a media directory. Unfortunately, there are over 100,000 images.

So I would like to break the images into sub-folders based on file name. For example, when I extract store_images.zip (or tar or whatever), my extract script would create directories (if they don't already exist) based on the first three digits of each image name, placing each image into the appropriate bottom level directory. For example, "9987788000012.jpg" would be placed in the following directory "media/9/9/8", with media as the root and "8" as the directory that holds any images that start with "998". Perhaps two sub-folders would be less cumbersome.Assuming this requires a script, particularly since it involves scanning image names, creating folders, and saving images to specific directories, which language would serve my needs best? PHP? Has anyone had to do something similar?

View 13 Replies View Related

Software :: Folder Name Comparison Utility - Folder Names No Longer Mirroring Each Other

Feb 4, 2010

Does anyone know a good program to use for comparing folder names from 2 different directories? The reason being that at work we have a shared area with 2 folders one named REC (records) the other named WIP (work in progress) within these 2 folders there are 100s of subfolders. The folder names in wip and rec both need to mirror each other but the files are different within the folders. The problem we're having at the moment is people are creating new folders with out letting me know which means the folder names are no longer mirroring each other. I need to know if there is a utilty available to compare just folder names so that we can get a list of folders which have been created without our knowledge and we can ask the originators to remove them.

View 4 Replies View Related

General :: Use Script To Batch Change File Names In Folder

Nov 9, 2009

I would like to change file names in two ways

1)
1.jpg -> 0001.jpg
2.jpg -> 0002.jpg
...
x.jpg -> 000x.jpg
...
xy.jpg -> 00xy.jpg

2)
5201.jpg -> 5001.jpg
5202.jpg -> 5002.jpg
...
5xyz.jpg -> 5(x-2)yz.jpg (where x >= 2)

View 3 Replies View Related

General :: Strande Folder Names In Knoppix And File Permissions?

Oct 4, 2010

I am trying to rescue some files on a Dell Laptop running XP that is in a BSOD state. I can boot up Knoppix just fine but all the files are read only but get the error: The remount command failed. Maybe there is another process accessing the filesystem currently.Also when I look at the files and folders on the Knoppix CD they look really odd. See attachment

View 3 Replies View Related

Programming :: Case Statement Passing Multiple Arguments?

Aug 7, 2010

I've started dabbling with the case statement in order to pass some option's arguments into variables. I do not think I am doing this right.

Code:

usage() {
echo "Usage: $0 [-z|--snooze] [-c|--channel] [-p|--playlist]
[-m|--message] [-v|--mpcvolume]"

[code]....

As you can see, I want to pass arguments depending on the option(s) chosen by the user; ie. --snooze, or --channel. By default, if no options are chosen, I'll display a usage message; though in the future I'll provide some sane defaults. I'd like to create a case statement to handle passing arguments to any number of options; something like:

Code:

wakethehellup.sh --snooze 20 --message 'wake up!'

and for the other arguments, it would have a default set. The case statement I provided fails with a syntax error "syntax error near unexpected token `$2'" near the '--snooze' in the statement, so I take it you can't pass a parameter in this way; but I'm confused as to how I'm supposed to pass different parameters to different options without the options being confused as parameters.

View 2 Replies View Related

Debian :: Find & Modify Path Statement

Jul 19, 2011

I am running Debian Squeeze, 64-bit.I would like to try my hand at bash scripting. So at the author's suggestion (first chapter of Chris F. A. Johnson, Pro Bash Scripting from apress) I created a /bin directory in my home directory. So now I would like to modify my PATH statement so that when I run a script from my bin directory my shell will find it.I did that. He then says that I should add this to ".bash_profile, .bashrc, or .profile depending on how bash is invoked." The find command is unable to locate any of these files. So I searched the forum, found the link above and tried to follow that. No luck so I assume that how Debian handles PATH statements has changed since that post?

I also have checked the wiki and worked Google as hard as I know how to do.Very simply where the heck is my PATH statement and how do I modify it?

View 4 Replies View Related

Programming :: Shell Script For Adding A Statement In A File After A Particular Statement?

Jun 28, 2010

We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated. This file contains a statement as "ECHO="echo"".f we run "Automake", without modifying the "libtool" the system hangs and theputer needs to be restarted.Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.I think a script can be written which does the above on its own.I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.

View 4 Replies View Related

General :: Replace ":" From Multiple Files Names - Even Recursively In Directories

Jan 31, 2010

I need to replace ":" from multiple files names, since I am going to copy those files from a linux partition, which admit the ":" to a FAT32 partition, which does not.

Example:
original name: eg06_ana_21-05-06_09:21:03.JPG
wished name: eg06_ana_21-05-06_09-21-03.JPG

I have googled a lot but I have not been able to adapt the examples given by people to my aim.

It seems that rename command is what I should use, but I have no idea to build the correct pearl expression.

View 3 Replies View Related

Networking :: Multiple Domain Names On One IP Address?

Dec 19, 2009

Is it possible to have one static IP address with a NAT network forwarding each domain name to certain internal/DMZ IP addresses? I know you can do it by port but if both websites are on port 80 can you forward to the corresponding server on the dmz.I ask this because I noticed the website braemere.com.au had to be typed into a web browser and entering the IP which is 202.47.5.7 did not take me to the website.

View 5 Replies View Related

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

Oct 6, 2010

I've written a simple perl code to learn switches in perl.My code is pasted below,

#!/usr/bin/perl
$opt = 1;
switch($opt) {

[code]...

View 3 Replies View Related

Fedora :: Seeing Files And Folder Names Using Nautilus?

Jun 1, 2011

I am having problems seeing files and folder names using Nautilus, but they are there as I can access them using CLI commands. Is there a way to get Nautilus to update its database or whatever it uses? I am using Nautilus 2.32.2.1. As is shown in my signature I am using F14 and Gnome 2.32.0.

View 7 Replies View Related

Ubuntu :: Show Folder Names On Taskbar?

Nov 5, 2010

I would like to configure my desktop so that I have taskbars on the bottom and sides. No problem. However I also want to put folders on these taskbars where the NAME of the folder is shown with the folder icon and not just when the mouse hovers over it. In other words, I want to be able to determine what the folder is just by looking at it. I like the way the program icons clearly show what the application is on the taskbar launch bars but how to achieve this for folders also ?

View 5 Replies View Related

Software :: Can't Put All The Data From Both Floppies In One Folder Because The Names Are The Same?

Feb 28, 2010

I have a problem installing simcity 2000 floppy edition on my computer because it asks for multiple floppies. I can't put all the data from both floppies in one folder because the names are the same. I have images of the floppies which individually work with imgmount in dosbox, but I can't seem to figure out how to use switching. I also have a real floppy drive with access to the floppies if I can find a way to use my physical drive (can't do that either)

View 2 Replies View Related

Networking :: Nslookup Returning Multiple Names On RedHat With Windows AD

Jun 11, 2010

Recently I installed RedHat Enterprise 5 on a windows machine. The machine is configured to use DHCP, but I have been seeing some strange behavior if I do nslookup on the machine's IP:

[someuser@lin01 mydir]$ nslookup 10.5.x.x
Server: 10.10.x.xx
Address: 10.10.x.xx#53
x.x.5.10.in-addr.arpa name = xyz.something.
x.x.5.10.in-addr.arpa name = lenovo-d1690047.
x.x.5.10.in-addr.arpa name = pqdlds.
x.x.5.10.in-addr.arpa name = lin01.mydomain.com.

Where only the last entry of [URL] is actually correct, how can remove the other entries? I spoke to my IT Manager and he cannot see these stale entries in the DNS (we are using windows AD)

View 3 Replies View Related

Software :: Gnu Tar Creates Multiple Odd Directories With Numeric Names When Extracting?

Feb 4, 2010

I become to use tar with incremental feature for archiving data under ubuntu.But when I try to extract archive later under windows (using gnu tar also) it creates many directories like this:

<...>
11324447220
11324447221

[code]...

View 2 Replies View Related

OpenSUSE Install :: 11.2 Changes Folder Names On Usb Drives On Startup?

Jan 6, 2011

i m running suse 11.2 on a generic desktop machine with two external usb hard disks for data storage. when i restart, the names of the names of the usb disks get changed in /media from exampledisk to exampledisk-1, another boot up and i get exampledisk-2. the data is no longer in exampledisk, but in exampledisk-1 or exampledisk-2.

View 9 Replies View Related

Ubuntu :: Tomboy Links For Folder Names With Spaces?

Oct 20, 2010

The title should be clear enough. I'm sure its bad practice, but I have loads of folder names with spaces in them. In the terminal I would use the backslash e.g. /home/me/D O C S/More DocumentsBut how do I get Tomboy to recognize the link?

View 1 Replies View Related

General :: Give Write Permissions To Multiple Users On A Folder In Ubuntu?

May 9, 2011

There is a folder that is owned by user tomcat6: drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document. I want to allow another user (ruser) write permissions on document folder. The two users (tomcat6 and ruser) does not belong to same group. I have tried using setfacl: sudo setfacl -m u:ruser:rwx document

but this gives me setfacl: document: Operation not supported error.

View 1 Replies View Related

Ubuntu :: How To Sort Folder And File Names On External Usb Drive

May 6, 2011

i recently bought an external 2 TB usb drive and connected it to a philips dvd player. all movies play just fine but I noticed that folder and file names are not displayed on the screen in alphabetical order but in the order they've been copied to the drive.now, i found the way to fix it by using this program: URl...the thing is it won't start in wine.so, is there any way to sort directory tables under ubuntu?

View 4 Replies View Related

Software :: Customizing Bash Autocomplete (Files And Folder Names)

Jan 6, 2009

Is there a way to customize bash autocomplete such that it avoids searching for commands? I want it to auto complete file and folder names only!

View 2 Replies View Related

CentOS 5 Networking :: Binding Domain Names To A Folder Below The Web Root?

Sep 1, 2010

I have a centOS 5 server running apache 2 with it's web root at /var/www/html. By setting up a dns entry to point to the computer's IP, I was able to go to testing.myservername.com and reach the contents of that directory.My question is, how can I go about mapping multiple future domain names to folders that are under this webroot?For example how would i bind www.temporarydomain.com to the /var/www/html/temporarydomain/ folder and also be able to map www.anotherdomain.com to /var/www/html/anotherdomain/?

View 1 Replies View Related

Ubuntu Networking :: Multiple User Names / Passwords To Access Same Shared Directory?

Mar 18, 2010

I have an ubuntu server set up in which i would like my shared media directory to be accessable with multiple usernames / passwords because I use my admisistrator username and password for samba as well, but I do not want to give out that password to all clients in my house. And, I would like to have write permissions but keep other users to read only. Is this possible or do i need to just make one separate username / password for samba sharing?

View 1 Replies View Related

Server :: Samba Share File/folder Names Ending In Period?

Aug 31, 2010

On one of my Samba shares on my server I have a folder of mp3 files of my CDs. The one I am having an issue with is "Clarence Carter/Dr. C.C." (yes, the one with the ULTIMATE party song). The "Dr. C.C." folder name is normal locally on the server, but across Samba it comes out "DMOU3A~H". It's definitely Samba doing it, because I get the same result whether accessing the share from Linux or Windoze. I can still access the folder this way, but it would be nice to not have Samba mangle the folder name this way. I am using Samba 3.4.2 on an Athlon64 X2 system running Slackware64.

View 1 Replies View Related

General :: How To Execute Multiple Commands When Using Find

Jan 22, 2011

I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.

View 2 Replies View Related

General :: Find Multiple Strings Into Files?

Mar 22, 2010

I would like to find all the files that contains the strings I'm searching.

For example (it's just an example), I would like to search all the files in "/etc" that contains "eth0" and "us", whatever where are located those 2 strings, the important is that the 2 strings are in the files listed.

It would be something like a "grep -lr 'eth0' *" and "grep -lr 'us' *" but in one time/command, so that I don't have to make a comparison of the 2 list of files resulting from the 2 "grep" commands given higher.

View 10 Replies View Related







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