LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-31-2004, 01:18 AM   #1
suchi_s
Member
 
Registered: May 2004
Posts: 133

Rep: Reputation: 15
* should represent any characters


exec < ~/ANYMEDIA/ERROR/`date '+%Y%m%d'`_ *.log


* should represtnt any characters..
but it ids not working
 
Old 07-31-2004, 01:40 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
It does ... but what do you expect to happen?


Cheers,
Tink
 
Old 07-31-2004, 02:09 AM   #3
suchi_s
Member
 
Registered: May 2004
Posts: 133

Original Poster
Rep: Reputation: 15
it should look for a file named ~/ANYMEDIA/ERROR/`date '+%Y%m%d'`_ 56:8:89.log
which actuaaly exists in the path mentioned
it gives an error

/home/amarvir/ANYMEDIA/ERROR/20040731_\*.log: file not found
 
Old 07-31-2004, 03:10 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
I'm jumping to conclusions here, but you're using bash,
and trying to feed log-files to the bash-builtin exec in
an ambiguous redirect?

What are you trying to achieve?


Cheers,
Tink
 
Old 07-31-2004, 04:03 AM   #5
suchi_s
Member
 
Registered: May 2004
Posts: 133

Original Poster
Rep: Reputation: 15
.log ig the extensoion which i have given to file..
it has nothin to do with log..
it has to search for the file name where 8 can be any characters..
but it prints the start as it is..in the file name when used in the script..
but if i write this in shell prompt it works fine
 
Old 07-31-2004, 10:23 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Try to not put space between last char (_) and *.log
 
Old 07-31-2004, 04:50 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Just had another look at the error message ...
If the file doesn't have a \ in its name, and
you're not trying to escape a space you forgot
to copy and paste it will obviously fail ;)


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
greek characters glimmy Linux - Newbie 7 05-02-2005 04:13 AM
non alpha characters frankwc Linux - Security 1 06-24-2004 06:40 PM
Does anyone know the origin of using "~" to represent the user's home directory? GonzoJohn General 6 10-14-2003 04:42 PM
what does this c represent shanenin Linux - Software 3 10-14-2003 02:45 PM
ascii characters lakshman Linux - General 1 03-14-2003 12:28 PM


All times are GMT -5. The time now is 05:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration