01-23-2002
find lowercase filenames
How do I write the command to find all files with any lower case letters in the filename? I have tried
find . -name *\(a-z\) and a lot of combinations like that, without success.
thanks
JP
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need a shell script which changes a bunch of files in a particular directory from lowercase to UPPERCASE.
I am not very familiar with shell scripts so a detailed explanation would be greatly appreciated!!!!
Thanks ini advance!
:) (7 Replies)
Discussion started by: Duke_Lukem
7 Replies
2. Shell Programming and Scripting
Hi,
I need to write a small script to search in some specific directories to check if any file is present with a unix command name...
Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file.
Please help
Thanks,
D (6 Replies)
Discussion started by: deepakgang
6 Replies
3. Solaris
Hi,
I am having set of files whose names are stored in a file say "filelist.txt"
Now, I want to find all files contained in "filelist.txt" from my parent directory.
Is there any way to let find command understand "filelist.txt" just like we have option -f in awk.
I donot want to run a... (4 Replies)
Discussion started by: sanjay1979
4 Replies
4. Shell Programming and Scripting
Hi Gurus,
Do any kind souls encounter have the same script as mentioned here.
Find and compare filenames in different mount point and remove duplicates.
Thanks a million!!!
wanna13e (7 Replies)
Discussion started by: wanna13e
7 Replies
5. Shell Programming and Scripting
I have the following code:
find /usr/local/test5 -type f -mtime +30 -exec ls -l {} \; | awk '{print $5, $6, $7, $8, $9}'
I have this as output:
14 Aug 12 00:00 /usr/local/test5/file1
14 Aug 12 00:00 /usr/local/test5/lastname,
The bolded part is where I run into trouble. The actual... (4 Replies)
Discussion started by: streetfighter2
4 Replies
6. Shell Programming and Scripting
I have an xml file. I need to convert a particular pattern to lower case and add 1 to it. For example my sample values in file are:
ergeAAwrgersc_DWSTAGE_AC_DBO_TBL_GROUPZONES_INITIAL.badAAergerg
sc_DWSTAGE_AC_DBO_TBL_SECTIONDEPENDENCY_INITIAL.badeAAwrgewrg... (6 Replies)
Discussion started by: alfredo123
6 Replies
7. Shell Programming and Scripting
Hello Guys,
I am writing a script which check each line for how many Uppercase and Lowercase letter of a given file. Please check my script as follow:
l=0
while read line
do
echo Line `expr $l + 1` has ` tr -cd "" < $line | wc -c` uppercase letters and
`tr -cd "" < $line | wc -c`... (3 Replies)
Discussion started by: kasparov
3 Replies
8. UNIX for Dummies Questions & Answers
I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass?
Thanks (19 Replies)
Discussion started by: barrydocks
19 Replies
9. UNIX for Dummies Questions & Answers
I have a virtual pdf printer set up on my server which produces files with the following prefix:
smbprn_00000044_Microsoft_Word_-_OriginalFilename.pdfthe number in the center of the file increase by one for each new file.
I want to remove all the charaters infront of OriginalFilename.pdf using... (14 Replies)
Discussion started by: barrydocks
14 Replies
10. Shell Programming and Scripting
Hi,
How to change the filenames with timestamp in sub folders
I have the following code to select the records.
find . -type f -name '*pqr*' -ctime 1 -print
The following is the example
app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`"
$app_root_dir/../BadFiles directory
uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 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)