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
NPRINT(1) nprint NPRINT(1)
NAME
nprint - NetWare print client
SYNOPSIS
nprint [ -S server ] [ -h ] [ -U username | -n ] [ -C ] [ -q queuename ] [ -d job-description ] [ -p pathname-in-banner ] [ -B username-in-
banner ] [ -s ] [ -f filename-in-banner ] [ -l lines ] [ -r rows ] [ -c copies ] [ -t tab size ] [ -T ] [ -N ] [ -F form-number ] filename
DESCRIPTION
With nprint, you can print files on print queues of a NetWare file server.
There are a lot of options, so you should probably wrap some default configurations into some shell scripts.
nprint looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of .nwclient MUST be 600, for security reasons.
OPTIONS
filename
filename is the name of the file you want to print. If file is '-', or no filename is given, standard input is used.
-h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U username
username is the user name to use for the print request at the server.
-P password
password is the password to use for the print request at the server. If neither -n nor -P are given, and the user has no open connec-
tion to the server, nprint prompts for a password.
-n
-n should be given if no password is required for the print request.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
-q queuename
queuename is the name of the print queue to use at the print server. At present, you must specify it in upper case characters.
-d job-description
job-description is the string that appears in pconsole when you list the jobs for the print queue. It will also appear in the "Descrip-
tion" field on the banner page.
-p pathname-in-banner
pathname-in-banner is the string (up to 79 characters) you want to be printed in the "Directory" field on the banner page.
-B username-in-banner
username-in-banner is the string (up to 12 characters) you want to appear on the lower part of the banner page. It will also appear in
the "User name" field.
-s
Supress printing of banner page
-f filename-in-banner
filename-in-banner is the string (up to 12 characters) you want to appear in large letters on the lower part of the banner page.
Default: the name of the file that is printed, or 'stdin'.
-l lines
lines is the number of lines to put on one page. Default: 66.
-r rows
rows is the number of rows to put on one page. Default: 80.
-c copies
copies tells the print server to the specified number of copies. Default: 1.
-t tabs
tabs is the number of spaces to print for a Tab-Character. Default: 8.
-T
tells the print server to expand Tab-Character and use 8 spaces
-N
tells the print server not to use Form Feeds
-F form-number
form-number is the the number of the form to be put into the printer. If it's different from the one currently in the printer, your job
is only printed if a printer operator has put in the correct form.
NOTES
The '-B' option was formerly '-b'. But it conflicted with 'bindery only' login option.
SEE ALSO
nwclient(5), slist(1), pqlist(1), ncpmount(8), ncpumount(8)
CREDITS
nprint was written by Volker Lendecke (lendecke@math.uni-goettingen.de)
nprint 12/27/1995 NPRINT(1)