Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Hi Forum.
I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns:
1st col: “Y” means sub-directory scan; "N" means no subdirectory scan
2nd col: sub-directory location
3rd col: File prefix... (7 Replies)
Hi All,
First my OS version is:
ksh:0$ uname -a
SunOS 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire-V440
I want to exclude the following DIR(./country111) in my search pattern:
ksh:0$ find . -name "*.tar"
./country111/COUNTRY_BATCH-801.tar
./country111/COUNTRY_BATCH-802.tar... (3 Replies)
I had a Shell script that removes the files that are in a directory older than the specified days.
find /test/files -mtime +10
I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU'
Thanks (1 Reply)
The below 'ls' command will list down files with extensions and suppress the ones with no extension
ls |grep "\\." But this dosen't work when I apply the same logic using 'find' command
find . -type f |grep "\\." I need help on how this logic can be implemented using 'find' command (3 Replies)
hello,
i want to use "-depth" in command "find" and want to exclude a directory.
the find command should work in HP-UX and Linux.
i see in the find man page:
-prune
If -depth is not given, true; do not descend the current directory.
If -depth is given, false; no effect.
-depth... (3 Replies)
Hi All,
I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified.
Do I need to single quote the directory paths ??
Many thanks for your help.
The relevant code excerpt from the script is:
cd /var/www/${SITE}
... (7 Replies)
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Hi Folks,
I want to run the below command and to exclude the specific path like /var/test/support/... . How to achieve using the below command
find / -type f \( –perm –4000 –o –perm –2000 \) –print
-Siva
Please do not use FONT tags inside CODE tags. And, there is usually no reason to... (2 Replies)
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
ns_guesstype
ns_guesstype(3aolserver) AOLserver Built-In Commands ns_guesstype(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
ns_guesstype - commands
SYNOPSIS
ns_guesstype filename
_________________________________________________________________DESCRIPTION
This command guesses and returns the MIME type of filename, based on the file extention. It has an extensive set of default mappings. You
can also add your own mappings in the "ns/server/servername/mimetype" section of the config file.
MIMETYPES
The following extentions and mimetypes are the default maps.
.adp text/html
.ai application/postscript
.aif audio/aiff
.aifc audio/aiff
.aiff audio/aiff
.ani application/x-navi-animation
.art image/x-art
.au audio/basic
.avi video/x-msvideo
.bin application/x-macbinary
.bmp image/bmp
.css text/css
.csv application/csv
.dci text/html
.dcr application/x-director
.dir application/x-director
.dp application/commonground
.dxr application/x-director
.elm text/plain
.eml text/plain
.exe application/octet-stream
.gbt text/plain
.gif image/gif
.gz application/x-compressed
.hqx application/mac-binhex40
.htm text/html
.html text/html
.jfif image/jpeg
.jpe image/jpeg
.jpg image/jpeg
.jpeg image/jpeg
.js application/x-javascript
.ls application/x-javascript
.map application/x-navimap
.mid audio/x-midi
.midi audio/x-midi
.mocha application/x-javascript
.mov video/quicktime
.mpe video/mpeg
.mpeg video/mpeg
.mpg video/mpeg
.nvd application/x-navidoc
.nvm application/x-navimap
.pbm image/x-portable-bitmap
.pdf application/pdf
.pgm image/x-portable-graymap
.pic image/pict
.pict image/pict
.pnm image/x-portable-anymap
.png image/png
.ps application/postscript
.qt video/quicktime
.ra audio/x-pn-realaudio
.ram audio/x-pn-realaudio
.ras image/x-cmu-raster
.rgb image/x-rgb
.rtf application/rtf
.sht text/html
.shtml text/html
.sit application/x-stuffit
.snd audio/basic
.sql application/x-sql
.stl application/x-navistyle
.tar application/x-tar
.tcl text/plain
.text text/plain
.tgz application/x-compressed
.tif image/tiff
.tiff image/tiff
.txt text/plain
.xbm image/x-xbitmap
.xpm image/x-xpixmap
.vrml x-world/x-vrml
.wav audio/x-wav
.wrl x-world/x-vrml
.z application/x-compressed
.zip application/x-zip-compressed
SEE ALSO nsd(1), info(n), ns_return(n)
KEYWORDS
mime
AOLserver 4.0 ns_guesstype(3aolserver)