|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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:
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
Is it possible you typed something like Code:
. /.other.txt ? when maybe you meant to type Code:
. ./other.txt ? |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|