Please help .[0-9][0-9] assignment not working , it is splitting up


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Please help .[0-9][0-9] assignment not working , it is splitting up
# 1  
Old 04-07-2009
Please help .[0-9][0-9] assignment not working , it is splitting up

All,

I am trying to do the below step

_pool="/pf/data[0-9][0-9]/"
(19Smilient:/pf/temp>) echo $_ppool
/pf/data01 /pf/data02/ /pft/data03/ /pft/data04/ /pf/data05/ /pf/data06/

when i echo my assignment it is not showing the string that i assigned , instead it is showing the whole split. What will be the cause . I want it to showed like "/pf/data[0-9][0-9]/"
Note for my login it is not showing if i logged with other user id it showing as expected .

If this is a profile setting ?????????

This is happening only is execute in home directory

Please help , Thanks

Last edited by arunkumar_mca; 04-07-2009 at 11:17 AM..
# 2  
Old 04-07-2009
you just need to surround the echo in double quotes:

Code:
echo "$_ppool"

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need a little help with assignment

Hello all im currently working on this assignment and a little stump on how to check for an argument heres the instructions: Step 4: Modify your script so that if there is an argument called TestError you display the following error message with your usage statement. TestError found Example:... (1 Reply)
Discussion started by: bsn3971
1 Replies

2. Homework & Coursework Questions

Help Assignment !! :D

Q-1 Write a shell script in Unix that lists files from your current working directory · By modification time when called with lm · By access time when called with la. By default, the script should show the listing of all the files in the current directory. Q-2 Write a shell script which... (1 Reply)
Discussion started by: Vishank Parikh
1 Replies

3. Shell Programming and Scripting

Help Assignment !! :D

Q-1 Write a shell script in Unix that lists files from your current working directory · By modification time when called with lm · By access time when called with la. By default, the script should show the listing of all the files in the current directory. Q-2 Write a... (1 Reply)
Discussion started by: Vishank Parikh
1 Replies

4. Homework & Coursework Questions

Assignment Help

1. List commands to create the directory hierarchy $HOME/a/b/c in vi to replace all occurences of TMP with tmp in lines 1 through 10 in vi to replace first occurence of CPU_file with DISK_file at line 15 2. Explain with a very simple example, usage of "ls -a" 3. What do the... (2 Replies)
Discussion started by: jessesaini
2 Replies

5. Homework & Coursework Questions

could really use some help! Uli101 assignment 2

Continue here (0 Replies)
Discussion started by: vpundit
0 Replies

6. Shell Programming and Scripting

RE value assignment

Hi all How do I assign a pattern to a variable after a match is found using a regular expression in PERL? For example using a regular expression (RE) and matching as given if ($_ =~ /(?:\s*+\s*,)*\s*+\s*/) I want to assign the pattern matched by the RE to a variable. e.g. given the... (4 Replies)
Discussion started by: my_Perl
4 Replies

7. What is on Your Mind?

New Assignment

All Sys Administrators, With due respect I would like to know what should be BEST Things to do when LEAVING one job , and what Precaution MUST be taken while taking over new JOB?? Please Discuss in detail the STEP to be taken for both the TIME ?? (3 Replies)
Discussion started by: vakharia Mahesh
3 Replies

8. Shell Programming and Scripting

School assignment

Hi, I have assignment from school. Please help me write the script for following example Using "eval", write a program called "recho" that prints its arguments in reverse order. For example, $recho one two three should produce three two one (1 Reply)
Discussion started by: sdp5628
1 Replies

9. UNIX for Dummies Questions & Answers

how to do my assignment?????

my lecturer want to do an assignment about telnet server..first, he want us to download the telnet server..then he want we do about copy files and share files by using the telnet server....what is that??? and one more thing is how to do 'ping'???? (1 Reply)
Discussion started by: amelia
1 Replies

10. IP Networking

automatic ip assignment

hello guyz, I am working on project of automatic ip adress assignment to a local network when I send a packet with Mac adress I want to get a reply from the other machine with its ip address ,so how can I achieve that? (2 Replies)
Discussion started by: netsavy
2 Replies
Login or Register to Ask a Question