Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Ls command question

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Ls command question

I am scratching my head right now. I am trying to archive a ton of files in a directory. I am attempting to tar them by year. On our development server if I type ls *_2008* it returns all of the files I am expecting to see. (The format of the filename includes xx_xx_xxx_2008-09-29_xxx.xxxx.xxxx) When I run the same command on the production server it says file or directory not found. Yet when I do a simple ls I see tons of files that I would expect to come back with the pervious ls command.

Any ideas why it works fine on our development system and does not work on production?

Thanks!

Jeff Smilie
# 4  
Nope, that did not change the results of the ls *_2008* command on production.

Thanks for the suggestion anyway!

Jeff
# 6  
Code:
$ uname
SunOS
$ echo $SHELL
/bin/ksh
$


Last edited by vbe; 05-08-2013 at 12:12 PM.. Reason: code tags next time please...
# 7  
It works for me, please verify:
Code:
$ uname
SunOS
$ set +f
$ touch /tmp/bla_2008bla_bla
$ echo /tmp/*_2008*
/tmp/bla_2008bla_bla

Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
New to Unix command line and have a question about the "sort" command
budfoxcat
I am going through the Unix Made Easy second edition book by John Muster. So far it's been very informative and I can tell it may be a bit out of date. In one of the exercises it talks about the "sort" command and using it to sort column's of data etc. The "sort" command has changed a bit and...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
while command question
zmfcat1
Hi What does while ( : ); do ...... ...... ...... done; mean? Does "while ( : )" refer too while true? Thanks.... Shell Programming and Scripting
4
Shell Programming and Scripting
mv command question
mjdbouk
Hello, i am trying to rename a file X to file Y on different location . lets say the mv command started but for some reason system crashed while it did not finish. will file Y be created physically with lets say half the records of what was in file X??? thanks in advance.... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
A command question
chiru_h
In one of our scripts, I see the following: PATH=`pwd` ## PATH=$(pwd) I see few commands with several ## in between while declaring a variable. May I know what ## signifies? Thanks Chiru... Shell Programming and Scripting
1
Shell Programming and Scripting
Question regarding the cp command.
Relyyk
For example, let's say I have a directory named Data1, which contains the files File1, File2, and File3. I also have another directory named Data2. Now, I want to copy the contents of Data1 into Data2. If I do this... $ cp -R /home/Data1 /home/Data2 I wind up with the Data1 directory...... UNIX for Dummies Questions & Answers
4
UNIX for Dummies Questions & Answers

Featured Tech Videos