Visit Our UNIX and Linux User Community


Apologies from a newbie!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Apologies from a newbie!
# 8  
Old 07-23-2009
The quotes around the command are backticks, not single quotes. You could also try
Code:
myfile=$( ls Myfile* )

# 9  
Old 07-23-2009
Quote:
Originally Posted by pludi
The quotes around the command are backticks, not single quotes. You could also try
Code:
myfile=$( ls Myfile* )

You guys Rock!

Works a treat!

Thanks so much everyone!!!!!
# 10  
Old 07-23-2009
Are you sure that you used accent mark (`) for the ls command? I am wondering whether you have used single quotes.


Code:
 
myfile=`lsMyfile*`



---------- Post updated at 04:38 AM ---------- Previous update was at 04:37 AM ----------

Quote:
Originally Posted by lathavim
Are you sure that you used accent mark (`) for the ls command? I am wondering whether you have used single quotes.


Code:
 
myfile=`lsMyfile*`


Cool..Looks like you got it fixed.
# 11  
Old 07-23-2009
[quote=lathavim;302336921]Are you sure that you used accent mark (`) for the ls command? I am wondering whether you have used single quotes.


Code:
 
myfile=`lsMyfile*`

---------- Post updated at 04:38 AM ---------- Previous update was at 04:37 AM ----------

lathavim, you were absolutely correct - I was using single quotes instead of the accent mark - apologies for doubting your suggestion!

I seem to be doing a lot of apologising today!! Smilie

Thanks to you all for your great help!
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #162
Difficulty: Easy
Early versions of MINIX were created by Andrew S. Tanenbaum for commercial purposes.
True or False?

6 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Our Apologies for the Down Time This Weekend (Servercraft Migration)

In case you did not notice, our server was not available for about 10 hours this weekend. Our service provider (Servercraft) moved their entire data center from Houston to Dallas, TX. They sent numerous emails to me but because of how I have configured gmail, none of the messages made... (0 Replies)
Discussion started by: Neo
0 Replies

2. Post Here to Contact Site Administrators and Moderators

Help with deleting post, apologies about the earlier post.

Apologies about the earlier post, i didnt realise, could i delete that post? I apologise again, SynGc (1 Reply)
Discussion started by: SynGc
1 Replies

3. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

4. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

5. Post Here to Contact Site Administrators and Moderators

apologies

sorry, I recently posted twice, thinking it didn't go through. didn't mean to make you hassle with redundancy. thanks for your good work. (1 Reply)
Discussion started by: protienplant
1 Replies

6. Post Here to Contact Site Administrators and Moderators

apologies to Perderabo

Sorry Perderabo, really was only asking advice on where best to post, and if I should post. Didn't intend for that missive to be posted. (0 Replies)
Discussion started by: keith.m
0 Replies

Featured Tech Videos