Hello,
I am having trouble with the syntax with a conditional statement in a BASH script involving multiple conditions. Any suggestions would be greatly appreciated!
if ; then
array=("${array}" "$dnNum" )
fi
i receive this error:
./testscript: ' (4 Replies)
Guys, Im trying to have a script that evaluates multiple conditions :
test.sh:
if
then
echo "host $1"
else
if
then
echo "host $1"
else
echo $1 not valid
exit 1
fi
when I do
./test.sh brazil1
I get: (4 Replies)
I want to search files (basically .cc files) in /xx folder and subfolders.
Those files (*.cc files) must contain #include "header.h" AND x() function.
I am writing it another way to make it clear,
I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings, header.h... (2 Replies)
Is there a reason why all of these examples of linux find and replace in multiple files use find and grep to pipe into sed or perl. Why not just use sed or perl directly with something like this?
sed -i 's/echo/burnbaby/g' booboo*... (2 Replies)
When I try the below if Condition with single condition its working fine.
But when I try to Club both its working . But giving wrong results.
In my case
cond1 = -f ${filename1} = true
cond2 = -f ${filename2} = true
But Cond1 & Cond2 is resulting in False ??? Please advise
... (5 Replies)
Hello Unix-Forums!
It has been a long time since my last post, but finally I've got a new question:
I know in case you can use multiple patterns by
case $var in
a|b|c|ab)
and so on.
But how would I place an OR between
if ]
then
...
if ]
then
...
I want to execute the "..." if... (3 Replies)
Fellas,
Am new to unix os/ and here the situation , I am trying to write multiple condition statement inside if but it throws me a error
here is my piece of code ,
if ] && ] && ]
then
commands
fi
error : line 15 : `
can someone please advise me how to fix it
Please use... (7 Replies)
Discussion started by: xeccc5z
7 Replies
LEARN ABOUT DEBIAN
ddir
DDIR(1) cvs status - formatter DDIR(1)NAME
ddir - display hierarchical directory tree
SYNOPSIS
ddir [options] DIR
DESCRIPTION
Display an indented directory tree using ASCII graphical characters to represent the hierarchical structure. The directories to include or
exclude can be specified with command line options. Ddir is a Perl implementation of the tree(1) program.
OPTIONS -d, --dir
Display only directories.
-h, --help
Print text help
--help-exclude
Print default exclude path value when --exclude-vcs is used.
--help-html
Print help in HTML format.
--help-man
Print help in manual page man(1) format.
-i, --include REGEXP
Include files mathing regexp. The match is done against whole path. The option can be used multiple times.
If this option is not supplied, every file is automatically included. The matches can be further filtered by using options --exclude.
-v, --verbose LEVEL
Print informational messages. Increase numeric LEVEL for more verbosity.
-V, --version
Print contact and version information.
-x, --exclude REGEXP
Ignore files mathing regexp. The match is done against whole path. The option can be used multiple times.
This option is applied after possible --include matches.
-C, --exclude-vcs
Exclude version control directories. See --help-exclude.
EXAMPLES
Show directory tree by excluding version control directories. Display only directories:
ddir --x-vcs --dir .
.
+--doc/
| +--manual/
+--bin/
TROUBLESHOOTING
None.
EXAMPLES
None.
ENVIRONMENT
None.
FILES
None.
SEE ALSO tree(1)COREQUISITES
Uses standard Perl modules.
AVAILABILITY
Homepage is at http://freshmeat.net/projects/ddir
AUTHORS
Copyright (C) 1995-2010 Jari Aalto. Copyright (C) 1994 Brian Blackmore.
LICENSE
This program is free software; you can redistribute and/or modify program under the terms of GNU General Public license either version 2 of
the License, or (at your option) any later version.
perl v5.10.1 2010-03-16 DDIR(1)