Search Results

Search: Posts Made By: Boost
3,787
Posted By Boost
How to create folder by using if and elif condition?
Hi All,

I have already code to create folder for one country let say US , now we want to create folder/directory for JP country also using shell script , application server.


$COUNTRY='US'
if...
1,650
Posted By Boost
Thank you ravinder. What is wrong in my code...
Thank you ravinder.

What is wrong in my code

dept_no=`sqlplus -silent apps/test<<EOF
set pagesize 0
set feedback off
set verify off
...
1,650
Posted By Boost
Ok. My requirement is if it is...
Ok.

My requirement is

if it is deptno=10 then
/opt/test/sample/$CURRENT_YEAR/$CURRENT_MONTH

if it is deptno=20 then
/opt/test/sample1/$CURRENT_YEAR/$CURRENT_MONTH/$DEPT_NO/$DEPT_NAME
...
1,650
Posted By Boost
Thank you. if [ -d...
Thank you.


if [ -d "/opt/test/$A_NAME/$DEPT" ]; then
echo "$ folder already exists, not created."
else
mkdir -p "/opt/test/$A_NAME/$DEPT" > /dev/null 2>&1
status=$?
if [...
1,650
Posted By Boost
Thank you. That was working fine i mean ,i...
Thank you.

That was working fine i mean ,i deleted the existing folder in below path

/opt/test/sample abc/def

after deleted and re ran the code.

now it is working fine.
...
1,650
Posted By Boost
Thanks for early reply.. I am passing...
Thanks for early reply..

I am passing parameter as sample
1,650
Posted By Boost
How to create 2 different path folders?
Hi all,

I am new to this forum.

A_NAME=$5
DEPT="abc"
DEPT_NAME="cdf"

echo " Name:" $A_NAME | tee -a ${LOG_FILE_NAME}
echo "dept :" $DEPT | tee -a ${LOG_FILE_NAME}
echo...
2,507
Posted By Boost
Hi all, Sorry for delay. I want to create...
Hi all,

Sorry for delay.
I want to create folder=$HOME/test/sample(exists) folders , now i want to add
/HOME/test/sample/Whatever ...here whatever need to take from select statement.

i...
2,507
Posted By Boost
Thanks. I want to create a folders if the...
Thanks.

I want to create a folders if the country is US then $HOME/test/sample

and if counntry is non-us so then, create folder as $HOME/test/sample/EMPNO

Please suggest , really i am new...
2,507
Posted By Boost
How to write if condition in shell script for application server?
Hi all,

I have a code to create folder in application server through shell script and i want to create if conditional based folder

folder=$HOME/test/sample/whatever

if [ -d "$folder" ];...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 02:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy