Hai All,
please help me in solving this assignment!!!
i need a unix script that has to check the text file exists or not in all directories and sub directories if textfile exists display the directory path else display does not exists!!
example: kamal.txt that i want to search if the... (5 Replies)
I have a list of files and their directories, starting from a particular location. e.g.
temp/new/a.c
temp/new/b.c
temp/old/a.c
temp/old/older/b.c
etc.
Now I want to check the existence of all these files in the respective directories .
I am trying something like
cat "fileList" |... (4 Replies)
Hi all,
I have following code:
export USERID=user
export BATCHHOSTIP=190.113.3.324
remotePath=/home/user
fileName=redbook.txt
EXIST=`ssh $USERID@$BATCHHOSTIP 'if ; then echo 0; else echo 1 ; fi'`
echo $EXIST
II run the code from other server. The redbook.txt file is exist in... (1 Reply)
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Hi,
Very unfamiliar with unix/linux stuff. Our admin is on vacation so, need help very quickly.
I have directories (eg 40001, 40002, etc) that each have one subdirectory (01).
Each subdir 01 has multiple subdirs (001, 002, 003, etc). They are same in each dir.
I need to keep the top and... (7 Replies)
I am trying to delete old file in ftp server, after transferring new file successfully .
but here i am checking both the file available or not using ls command.
if both the file available means i need to get file_new and file_old file size as greater than zero.
but i am getting only for... (3 Replies)
Hi,
I am unable to achieve the file exist conditions if there are multiple files same similar name for e.g. in a $Direct i am having files like
aus.txt
aus.txt_pr
aus.txt_2012
i need to put a file exist condition like which is not working
then
echo "File present"
but the... (9 Replies)
Hi All,
Seeking for your assistance to compare if the file in working directory is found on the DIR2 directory and if not found move the file in DIR2.
ex. WORKING_DIR=/home/dir1/
file1.txt
DIR2=/home/admin/users
file1.txt
what i did was
found_nonempty=''
for file in... (4 Replies)
Hello,
I have a file with below content - Example
3
6
69
139
210
345
395
418
490
492
I would like the result as - Multiple of 70 or nearest number in the file less than the multiple of 70
69
139 (5 Replies)
Discussion started by: Mannu2525
5 Replies
LEARN ABOUT NETBSD
mkdir
MKDIR(1) BSD General Commands Manual MKDIR(1)NAME
mkdir -- make directories
SYNOPSIS
mkdir [-p] [-m mode] directory_name ...
DESCRIPTION
mkdir creates the directories named as operands, in the order specified, using mode rwxrwxrwx (0777) as modified by the current umask(2).
The options are as follows:
-m Set the file permission bits of the final created directory to the specified mode. The mode argument can be in any of the formats
specified to the chmod(1) utility. If a symbolic mode is specified, the operation characters ``+'' and ``-'' are interpreted rela-
tive to an initial mode of ``a=rwx''.
-p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already
exist. Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write
and search permission for the owner. Do not consider it an error if the argument directory already exists.
The user must have write permission in the parent directory.
EXIT STATUS
mkdir exits 0 if successful, and >0 if an error occurred.
SEE ALSO chmod(1), rmdir(1), mkdir(2), umask(2)STANDARDS
The mkdir utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD January 25, 1994 BSD