Search Results

Search: Posts Made By: pkohn11
4,476
Posted By pkohn11
#!/bin/bash kjv=kjv.txt trim(){ local...
#!/bin/bash

kjv=kjv.txt
trim(){
local trim_string
local _TRIM=$1
trim_string=${_TRIM##*[${2:- }]}
_TRIM=${_TRIM#"trim_string"}
echo $_TRIM
}

#trim() {
# echo $( _trim "$@" )
#}
...
4,476
Posted By pkohn11
hmm still not working
hmm still not working
4,476
Posted By pkohn11
So now I have: #!/bin/bash kjv=kjv.txt ...
So now I have:
#!/bin/bash

kjv=kjv.txt
trim(){
local trim_string
local _TRIM=$1
trim_string=${_TRIM##*[${2:- }]}
_TRIM=${_TRIM#"trim_string"}
echo $_TRIM
}

#trim()...
4,476
Posted By pkohn11
show dots when script is "thinking"
Hey, I'm running the following script:

#!/bin/bash

kjv=kjv.txt
trim(){
local trim_string
local _TRIM=$1
trim_string=${_TRIM##*[${2:- }]}
_TRIM=${_TRIM#"trim_string"}
...
2,982
Posted By pkohn11
ok cool thanks!
ok cool thanks!
2,982
Posted By pkohn11
for some reason the $RANDOM1 variable wont show...
for some reason the $RANDOM1 variable wont show any data
2,982
Posted By pkohn11
well i changed the script a bit, sorry i guess i...
well i changed the script a bit, sorry i guess i should have reposted the new one on there.
2,982
Posted By pkohn11
no it wasnt
no it wasnt
2,982
Posted By pkohn11
2 commands in script wont work together
For some reason when I run these separately they work but when they are in a script file the second wont:
printf "%s\n" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM"...
2,406
Posted By pkohn11
I know this isn't the proper way to do it but I...
I know this isn't the proper way to do it but I am currently in a Linux/Unix programming class and they want this to be done using printf and $RANDOM (which I've never done it this way before). I...
2,406
Posted By pkohn11
trying to create printf script
I am trying to make a script that randomly generates 4 sets of numbers with decimal points. Then it outputs that to a variable and a file. This is what I have:

#!/bin/bash

printf -v RANDOM_2...
Showing results 1 to 11 of 11

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