Sponsored Content
Full Discussion: Need smart script !
Top Forums Shell Programming and Scripting Need smart script ! Post 302652607 by mohtashims on Thursday 7th of June 2012 11:01:05 AM
Old 06-07-2012
Question

No... not like this.

I need this

Code:
/appl/user_projects/domains/test.com/servers/dc1/logs
/appl/user_projects/domains/test.com/config/dc6/logs
/appl/user_projects/domains/test.com/servers/dc2/logs
/appl/user_projects/domains/test.com/servers/dc3/dump

Now,

Code:
 
/appl/user_projects/domains/test.com/config/dc6/logs [does not have the "server" folder]

and

Code:
 
/appl/user_projects/domains/test.com/servers/dc3/dump [does not have a "logs" folder]

Hence both of them should be ignored.

This is what i need

Code:
 
a1=/appl/user_projects/domains/test.com/servers/dc1/logs
b1=/appl/user_projects/domains/test.com/servers/dc2/logs

Also, I need

Code:
dir1=dc1
dir2=dc2

 

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

smart question

eg. : there is a file - 322 bytes, how can I (or you) view just a half of file (161 bytes)? (3 Replies)
Discussion started by: zylwyz
3 Replies

2. Shell Programming and Scripting

smart script?

First, I know that's a bad title. I couldn't think of anything short enough. ... I wrote the following script to let me know when various parts of the network are down. It used to look like this before last weekend when I got over 500 emails about 1 host being down all weekend: this is in the... (1 Reply)
Discussion started by: raidzero
1 Replies

3. Shell Programming and Scripting

Smart Backup Script

Hello Im pretty new to scripting in linux but am keen to learn. I'm trying to create a backup script similar to a batch script I developed for windows (dos) where the backup is to a usb drive. no problems with the backup process but what I would like to do is automatically remove old files if... (2 Replies)
Discussion started by: TheGacko
2 Replies

4. UNIX for Dummies Questions & Answers

Explain the difference between the commands cd ~smart and cd ~/smart

Is it possible for both commands to work? (1 Reply)
Discussion started by: phunkypants
1 Replies
asadmin-start-appserv(1AS)					   User Commands					asadmin-start-appserv(1AS)

NAME
asadmin-start-appserv, start-appserv - starts thedomains in the specified or default domains directory SYNOPSIS
start-appserv [--domaindir install_dir/domains] [--terse=false] [--echo=false] DESCRIPTION
This command has been deprecated. Please use start-domain to start the domains in the specified or default domains directory. start-appserv starts the domains in the specified or default domains direcotry. If the domains directory is not specified, the domains in the default domains directory are started. The default domains directory is install_dir/domains. This command can only be run locally. OPTIONS
--domaindir directory where the domains are started. If specified, path must be accessible in the filesystem. If not specified, the domains are started in the default install_dir/domains directory. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-create-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS), asadmin-delete-domain(1AS), asadmin-list-domains(1AS) J2EE 1.4 SDK March 2004 asadmin-start-appserv(1AS)
All times are GMT -4. The time now is 01:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy