Search Results

Search: Posts Made By: klarue
9,506
Posted By klarue
Solution
I found that this works


bankid=$1
stmttype=$2
jdd=`date '+%j'`

stid=$(expr substr $2 1 1)

echo "ID: $stid"
9,506
Posted By klarue
Assign a variable the nth character of a string.
I see a millioin ways to do this with echo, but what I wan to do is assign a variable the "nth" character of an incoming parameter to a ksh script.

$1 will be "pia"

I need to assign the first...
2,848
Posted By klarue
Change ownership of a directory
I want to change the ownership of a directory ONLY.

my id

id1 owns the files under the /mypath/bin

but /mypath/bin is owned by id2

If i log into id2

I can't do

chown id1...
27,476
Posted By klarue
Thanks, that's what I needed to know.
Thanks, that's what I needed to know.
Showing results 1 to 4 of 4

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