remove the x , make a test with an empty ip and see what happen ...
---------- Post updated at 10:09 PM ---------- Previous update was at 10:07 PM ----------
if $ip is empty :
now if $ip is empty without x :
Note that this would not happen using double quote
Ok course these behaviours may depends on your system OS and SHELL implementation, but this is what "could" be expected
if you remove the x, and $ip is empty, you get
which leads to an error.
the same with x and empty $ip:
no errors here.
You can as well enclose $ip with double-quotes so if $ip is empty, you still have an argument to the left of the =:
or you can use that -z, but it only test for zero string, you can't use this if you need to check different IPs:
says "if string $ip is zero-length, then..."
Please help to provide command in vi to add \ in front of $ so it does not interpret next character.
rm interfaces/DART/WEB-INF/classes/DART/util/TotalDisconnectUtil$1.class
rm interfaces/DART/WEB-INF/classes/DART/util/TotalDisconnectUtil$2.class
rm... (3 Replies)
Is there a way to bring the terminal script to the front? I am running this script through OMCEdit which is then running it through Terminal. I have some dialog boxes (using osascript) and the dialog boxes are not coming to the front...Terminal bounces and I have to click on Terminal to see the... (1 Reply)
Hi Forum,
Im trying to write some code to read a file, take a certain dynamic value and write it back to the file at the front of every line.
For example, file.txt is:
SIMPLE=HELLO
CONFIDENTIAL=false
SENDER=false
REQUIRED=true
FEEDBACK=false
UPDATE=false
REQUIRED=false
MAPPING=true... (9 Replies)
Hi
consider this as the first line
00010015 MORGAN STANLEY & CO INCORPORATED N 110 INVESTAR 1 0001OT NJ 201-830-5055 01-Jan-1974 00:00:00 1 01-May-2008 00:00:00 05-Jun-2008 13:34:18 0001 - From SMSRun1_GIDQA02
Consider this as the second line
00010015 MORGAN STANLEY... (3 Replies)
dear pro-coders,
is there any command out there that takes out the front spaces from a string?
sample strings:
4 members
5 members
3 members
but it has to be like so:
4 members
5 members
3 members (3 Replies)
Hi,
I would like to develop a user interface on Solaris. Can anybody throw some light on currently available software utilities/ packages..?
Thanks in Advance ..
JS (4 Replies)