How to compare the file name for "zip" or "ZIP" extension.
I can put one more || condition to check the upper case in the below:
if ]; then
Is there any better way to compare using regular expressions.
Thx in advance. (4 Replies)
the script on excution should take a directory path from useran a numric input and it should check indicate whether its write or not?
if the cmmd sh<script-name>,dir/path.<500>" is greater than 500 in size should be copied to dir ,temp in pwd and display the mesage'files of 2000 bytes hav been... (4 Replies)
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
How can I get only FileName associated with a INODE on Unix in seconds instead of minutes, as it is the case for me as shown below.
# Say I have FileDescriptor: 43, INODE: 2590784, File: abc.rdb. I want to get only filename associated with inode:2590784 and FD:43.
$> time find / -inum... (7 Replies)
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd... (1 Reply)
Hello,
Trying to iterate over set of file in current directory and check if the file name in that folder matches certain string. This is what I have so far. Here I am checking if the file name starts with nexus, if so echo file name to log file.
Getting weird syntax errors. Any help is... (7 Replies)
Well since Windows always laments over some of my files having a too long "path+filename" and it gets in the way of copying complete directory structures I would love to have a DOS Script that helps me with finding those.
I already tried DCSoft Long Filename Finder but that is neither DOS based... (3 Replies)
Hi All
How to answer the below interview question..
With a path and filename of "/mydir1/mydir2/mydir3/myfilenane.dat" write a UNIX script to display the filename (2 Replies)
Discussion started by: shumail
2 Replies
LEARN ABOUT SUNOS
note
note(4) File Formats note(4)NAME
note - specify legal annotations
SYNOPSIS
/usr/lib/note
DESCRIPTION
Each file in this directory contains the NOTE (also _NOTE) annotations legal for a single tool. The name of the file, by convention,
should be the tool vendor's stock name, followed by a hyphen, followed by the tool name. For example, for Sun's lock_lint tool the filename
should be SUNW-lock_lint.
The file should contain the names of the annotations understood by the tool, one per line. For example, if a tool understands the follow-
ing annotations:
NOTE(NOT_REACHED)
NOTE(MUTEX_PROTECTS_DATA(list_lock, list_head))
then its file in /usr/lib/note should contain the entries:
NOT_REACHED
MUTEX_PROTECTS_DATA
Blank lines, and lines beginning with a pound (#), are ignored.
While /usr/lib/note is the default directory tools search for such files, they can be made to search other directories instead simply by
setting environment variable NOTEPATH to contain the paths, separated by colons, of directories to be searched, e.g.,
/usr/mytool/note:/usr/lib/note.
USAGE
These files are used by such tools whenever they encounter NOTEs they do not understand. If a file in /usr/lib/note contains the annota-
tion, then it is valid.
If no such file contains the annotation, then the tool should issue a warning complaining that it might be invalid.
ENVIRONMENT VARIABLES
NOTEPATH specify paths to be searched for annotation files. Paths are separated by colons (":").
SEE ALSO NOTE(3EXT)SunOS 5.10 17 Jan 1995 note(4)