Hi,
I have the following question :
As far as I know unix doesn't store file creation dates.
Would that imply the following?
tar -cvzf backup.tar --newer
is equal to:
tar -cvzf backup.tar --newer-mtime ? (1 Reply)
Howdy folks.
I have a problem - I'm sure the answer is very simple, but I can't work it out.
I want to create a UNIX shell script that does what I've been doing in DOS batch files for years - that is, backing up files. By which I mean copying files from a source directory to a target... (4 Replies)
Dear All,
I'm new to unix scripting. I'm trying to write an utility script which has to check if one file is newer than another one. The condition is I dont know the full name of the first file. I searched google and this forum for any such examples, but couldn't find any or may be I would have... (9 Replies)
Hi,
I have a text file, foo.txt, it looks something like below. In the file there is a line that gives the date in the form of: Mon Jun 15 11:09:31 2008. I need to find which date is the newest and then store certain details of that list data to another file. So, in this sample text file, I... (6 Replies)
This should be a simple script, but can't find one with google search.
I just need to find the file that is in many directories, then overwrite that file with a newer version i.e.
find file.jar then overwrite with /root/file.jar
All I get in searches is substitute text with new test inside... (1 Reply)
Hello,
Can you please help me one this:
I have two servers: Server A and server B.
Every day on 03.00AM in only one on these two servers (randomly)is generated one file, lets say file.txt.
I want to copy this file also to the other server.
I want to create a perl script that does... (2 Replies)
Dear All,
I'm new to unix scripting. I'm trying to write an utility script which has to check if one file is newer than another one. $3 $4 $5 $6 are files .txt. Help me please.
for i in $3 $4 $5 $6
do
if
then
echo "$1 is newer than $i"
else
echo "$i is newer than $1"
fi (9 Replies)
Discussion started by: Manueldo
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)