09-24-2014
Thanks!!
Thanks a lot Cero and gandolf989. It helps!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I need help to create a shell script that does following:
- do ls -1 and let all file names in the current folder
- do wc for each file and if wc > 0 then send a mail.
I am new to unix and do not know how to get filename one by one in a loop, so that wc can be done. I have done rest... (5 Replies)
Discussion started by: adadevil
5 Replies
2. Shell Programming and Scripting
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Discussion started by: lathish
2 Replies
3. UNIX for Dummies Questions & Answers
I'm sure this can't be too tough, but.
I want to check the existance of file(s) by extension. There may be 0,1,N files. If any files exist, then remove them.
Thanks for any insight. (3 Replies)
Discussion started by: niswonp
3 Replies
4. Shell Programming and Scripting
Hi all,
I have the following code:
if ; then echo 'folder not exist'; else echo 'folder exist'; fi
The "testing" folder is not exist in /home/batch , but thhe result is 'folder exist'. It seems that the code cannot detect that the folder "testing" not exist.
ANybody know the... (1 Reply)
Discussion started by: suigion
1 Replies
5. Shell Programming and Scripting
I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result.
if
then
<do some work>
else
<no files>
fi
Since there are more than one... (18 Replies)
Discussion started by: vivek_damodaran
18 Replies
6. Shell Programming and Scripting
Kindly help on below script:
<<
i='find ...'
if then
echo 'File Exists'
else
echo 'File Does Not Exist'
>>
If i has some file name then it runs properly but if i has nothing ( blank value) then it throws an error. I dont exactly remember right now but error seems like:... (2 Replies)
Discussion started by: ravigupta2u
2 Replies
7. Shell Programming and Scripting
Hi Team,
I'm new to Unix shell scripting .
I've the following requirement
A folder contains the list of files with the following format
ab.name.11.first
ab.name.12.second
ab.name.13.third
----------
I have to rename the above file to like below
... (6 Replies)
Discussion started by: smile689
6 Replies
8. Shell Programming and Scripting
Hi,
I have 9 files which are generated dynamically & if there is a some condition which doesn't meet the criteria then file is not created or is of zero size.
so further i am unable to consolidate the files based on following code 1
awk -F, -v ptime="201407" 'FNR==1... (3 Replies)
Discussion started by: siramitsharma
3 Replies
9. Shell Programming and Scripting
I have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
Discussion started by: vipertech
16 Replies
10. Shell Programming and Scripting
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)
Discussion started by: znesotomayor
4 Replies
LEARN ABOUT DEBIAN
netwox
NETWOX(1) General Commands Manual NETWOX(1)
NAME
netwox - examples/tools of the network library netwib
VERSION
The version installed on this system is 5.36.0.
IMPORTANT
Manpage do not contain a lot of information. Rather read netwox-5.36.0-doc_html.tgz.
SYNOPSIS
netwox number [ parameters... ]
netwox number --help
netwox number --help2
netwox
PRESENTATION
Toolbox netwox helps to find and solve network problems.
It provides 222 tools :
- udp/tcp clients/servers
- spoofing
- sniffing
- address conversion
- etc.
Netwox is mainly oriented towards network administrators and security auditors.
Some tools are only a simplified implementation, while others are very sophisticated.
Netwox is available under the GNU GPL license.
DESCRIPTION
number number of the tool to use
parameters
parameters for the chosen tool number. Parameter --help shows help. Parameter --help2 shows description.
When using netwox without number and parameters, it enters interactive help mode. In this mode, the user has to select a category by press-
ing a key. Then by choosing a tool number, its corresponding usage is displayed. Note: netwag is easier than interactive help mode.
EXAMPLES
netwox 23 --help
display simple help for tool number 23
netwox 23 --help2
display full description of tool 23. It also display its description.
netwox 23
run tool 23
netwox 23 --extended
run tool 23 with --extended parameter
netwox 23 -e
run tool 23 with -e parameter (synonym for --extended)
All the tools are not described in this manpage. Reading netwox-5.36.0-doc_html.tgz is recommended.
SEE ALSO
netwib(3) netwag(1)
02/11/2008 NETWOX(1)