No such file or directory | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

No such file or directory

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-06-2009
kurapati kurapati is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 6 September 2009, 11:17 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
No such file or directory

When I tried to execute the following line at the command prompt, It is working properly..

grep flux file1.out > file1.csv

But when I supply this line in a 'other.txt' file, it is giving me the error :

No such file or directory

The file contents are :

grep flux file1.out > file1.csv
grep flux file2.out > file2.csv
grep flux file3.out > file3.csv
grep flux file4.out > file4.csv
Sponsored Links
    #2  
Old 09-06-2009
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 Posts
Not clear to me.
What did you type at the command prompt which gave the error message "No such file or directory" ? Please post the full message because that usually contains the name of the file which cannot be found.
Please post which Operating System you have and which shell?

Quote:
The file contents are
Which file?
Sponsored Links
    #3  
Old 09-06-2009
jyoung jyoung is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 12 May 2014, 12:49 PM EDT
Location: Flint, MI
Posts: 262
Thanks: 0
Thanked 4 Times in 4 Posts
Try specifying the directory that the file is located in. If you are executing this from a different directory then the one that the file is located in then you would get this message.
    #4  
Old 09-06-2009
Vi-Curious Vi-Curious is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 13 May 2014, 6:14 PM EDT
Location: Texas
Posts: 151
Thanks: 1
Thanked 2 Times in 2 Posts
Is it possible you typed something like

Code:
. /.other.txt

?

when maybe you meant to type

Code:
. ./other.txt

?
Sponsored Links
    #5  
Old 09-07-2009
siba.s.nayak siba.s.nayak is offline
Registered User
 
Join Date: Jun 2007
Last Activity: 6 December 2011, 3:39 AM EST
Posts: 207
Thanks: 3
Thanked 0 Times in 0 Posts
Keep the script file and file*.out file in same directory or give the full path of file*.out in the script file.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Move a file from windows directory to unix directory kingpeejay Shell Programming and Scripting 1 06-19-2009 01:31 PM
Deleting the file only to all the directory and sub directory kingganesh04 Shell Programming and Scripting 7 12-30-2008 02:13 AM
find for specific content in file in the directory and list only file names madhu_Jagarapu AIX 2 12-23-2008 01:13 AM
ls > file - Creating file containing the list of all files present in a directory pranavagarwal Shell Programming and Scripting 1 09-26-2008 08:37 PM
Copying one file at a time from one directory to another directory. Nikhilindurkar UNIX for Dummies Questions & Answers 1 09-01-2008 09:25 AM



All times are GMT -4. The time now is 03:14 PM.