09-28-2010
thanks for quick reply -getting some error
Thanks for reply.
the following error is coming:
find: cannot open .-type: No such file or directory
find: cannot open f: No such file or directory
will please let me know any other alternative is there.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (2 Replies)
Discussion started by: pharos467
2 Replies
2. Shell Programming and Scripting
I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (11 Replies)
Discussion started by: pharos467
11 Replies
3. Shell Programming and Scripting
Hi,
filenames:
contains name of list of files to search in.
placelist
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
do
egrep -f placelist $i
if ]
then
echo $i
fi
done >> outputfile
Output i am getting: (0 Replies)
Discussion started by: pinnacle
0 Replies
4. Shell Programming and Scripting
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies
5. Shell Programming and Scripting
Hi,
I am new to script and I want find one string from multiple files in diff directories and put that out put to new file.
Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt
Now I want write script to find the string... (8 Replies)
Discussion started by: Mahessh123
8 Replies
6. Shell Programming and Scripting
Hello friends,
Plz suggest the find command,
How to search a string in a paticular string in miltiple files with current dirctory.:)
Thanks in advance.
Siva Ranganath Ch (2 Replies)
Discussion started by: sivaranga001
2 Replies
7. Shell Programming and Scripting
I'm trying to create what (should be) a simple bash script that will pull computer name and use that info to bind to one of three servers. Is there any way to do this without having a text file with the names of the servers and associated computer names? (5 Replies)
Discussion started by: jacobsbigbro1
5 Replies
8. Shell Programming and Scripting
Hi,
I want find multiple string in one file using find coomand.
And keeping it in one variable.grep is not working. (5 Replies)
Discussion started by: vivek1489
5 Replies
9. Shell Programming and Scripting
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies
10. Shell Programming and Scripting
Hello all,
I have a directory with 2000+ files. I need to look in each file for an invoice number. To identify this, i can search for the string 'BIG' and then retrieve the next 30 characters. I was thinking awk for this, but not sure how to do it. Each file contains one long string and in... (8 Replies)
Discussion started by: jdinero
8 Replies
LEARN ABOUT PHP
mongogridfsexception
MONGOGRIDFSEXCEPTION(3) 1 MONGOGRIDFSEXCEPTION(3)
The MongoGridFSException class
INTRODUCTION
Thrown when there are errors reading or writing files to or from the database.
CLASS SYNOPSIS
MongoGridFSException
MongoGridFSExceptionextends
MongoException
ERROR CODES
MongoGridFSException error codes
+-----+-------------------------------+---+---+
|Code | | | |
| | | | |
| | Message | | |
| | | | |
| | Reason | | |
| | | | |
+-----+-------------------------------+---+---+
| 3 | | | |
| | | | |
| | Could not open file $filename | | |
| | | | |
| | Attempting to store an | | |
| | invalid file, such as direc- | | |
| | tory | | |
| | | | |
| 4 | | | |
| | | | |
| | File $filename is too large: | | |
| | $filesize bytes | | |
| | | | |
| | Maximum filesize in GridFS is | | |
| | 4GB | | |
| | | | |
| 5 | | | |
| | | | |
| | could not find filehandle | | |
| | | | |
| | Resource doesn't have a file- | | |
| | handle | | |
| | | | |
| 6 | | | |
| | | | |
| | no file is associate with | | |
| | this filehandle | | |
| | | | |
| | Resource isn't a file | | |
| | resource | | |
| | | | |
| 7 | | | |
| | | | |
| | error setting up file: $file- | | |
| | names | | |
| | | | |
| | Could not open file for read- | | |
| | ing | | |
| | | | |
| 9 | | | |
| | | | |
| | error reading file $filenames | | |
| | | | |
| | Failed reading file | | |
| | | | |
| 10 | | | |
| | | | |
| | error reading filehandle | | |
| | | | |
| | Failed reading from a | | |
| | resource | | |
| | | | |
| 11 | | | |
| | | | |
| | could not find uploaded file | | |
| | %s | | |
| | | | |
| | Filename doesn't seem to be | | |
| | uploaded file | | |
| | | | |
| 12 | | | |
| | | | |
| | Couldn't find tmp_name in the | | |
| | $_FILES array. Are you sure | | |
| | the upload worked? | | |
| | | | |
| | Uploaded filename probably | | |
| | failed | | |
| | | | |
| 13 | | | |
| | | | |
| | tmp_name was not a string or | | |
| | an array | | |
| | | | |
| | Invalid filename given | | |
| | | | |
| 14 | | | |
| | | | |
| | couldn't find file size | | |
| | | | |
| | The $length property is miss- | | |
| | ing | | |
| | | | |
| 15 | | | |
| | | | |
| | Cannot find filename | | |
| | | | |
| | No filename provided, and no | | |
| | $filename property set | | |
| | | | |
| 16 | | | |
| | | | |
| | could not open destination | | |
| | file %s | | |
| | | | |
| | Destination filename not | | |
| | writable | | |
| | | | |
| 17 | | | |
| | | | |
| | error reading chunk of file | | |
| | | | |
| | Chunk corruption | | |
| | | | |
| 18 | | | |
| | | | |
| | couldn't create a php_stream | | |
| | | | |
| | Couldn't create a stream | | |
| | resource | | |
| | | | |
| 19 | | | |
| | | | |
| | couldn't find $property | | |
| | | | |
| | Chunk corruption | | |
| | | | |
| 20 | | | |
| | | | |
| | chunk $number has wrong size | | |
| | ($size) when the max is $max- | | |
| | chunksize | | |
| | | | |
| | Chunk larger then expected | | |
| | | | |
| 21 | | | |
| | | | |
| | chunk has wrong format | | |
| | | | |
| | Chunk corruption | | |
| | | | |
+-----+-------------------------------+---+---+
PHP Documentation Group MONGOGRIDFSEXCEPTION(3)