In the shell scripts if is also command. Looks like if in the programming languages but it's not same.
After if is some command, example test or shortly [ or compound command [[ or even cp or ...
Using test (= [ ) command
Or using [[ compound command
Anyone have guide to install samba on solaris 9
I tried couple of times. --How do I go about uninstalling it?
bash-2.05# testparm -s > output.file
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section ""
Processing section ""
Loaded services file OK.
bash-2.05#... (2 Replies)
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Hi,
Does anybody success install GD and apply it in linux?
I got trying to install it recently. Unfortunately, it seems like got a lot of error message shown :(
Thus anybody got success install and use the GD in linux? Can share it with me?
I'm using ia64 linux system.
Thanks a lot for all... (6 Replies)
Hi All,
I am kinda struck at one point :wall: need ur help to move further.
Query:
My inputs files are
Expected output:
I am sure there should be similar tread relating my query ..but as i couldnt find the details i am posting again.
Please direct me to the tread or reply... (1 Reply)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)