Search Results

Search: Posts Made By: spgreddy
26,430
Posted By Don Cragun
So try something like: #!/bin/bash ...
So try something like:
#!/bin/bash
x=/u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar
y=${x%/*/*/*}
printf 'x is %s\ny is %s\n' "$x" "$y"
which produces:
x is...
Showing results 1 to 1 of 1

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