Search Results

Search: Posts Made By: DuskFall
6,752
Posted By DuskFall
Using wildcard in if statement
I'm trying to make a small script to see if you say a specific word, in bash.
Here is my code so far :


if [[ "$NETORDEV" =~ Device ]]; then
echo "You typed Something Device Something"
fi...
2,344
Posted By DuskFall
Thank you, just waiting for it to come round...
Thank you, just waiting for it to come round and...It works. Thank you so much, this has been bugging me since last night sometime...
My final question is : How can i stop it from saying "Current...
2,344
Posted By DuskFall
This is the body of the code i use (been updated...
This is the body of the code i use (been updated with the '((' that you recomended)

ALARMHOUR=`echo "$ALARMTIME" | cut -d : -f 1 `
ALARMMINUTE=`echo "$ALARMTIME" | cut -d : -f 2 `...
2,344
Posted By DuskFall
Oh ok thank you, I didn't see that bit......
Oh ok thank you, I didn't see that bit... somehow.. Thank you :)

---------- Post updated at 06:41 PM ---------- Previous update was at 06:36 PM ----------

So @Corona, Whats the difference...
2,344
Posted By DuskFall
Thank you for the help speeding up the execution,...
Thank you for the help speeding up the execution, however I only posted for the problem i was getting... Any idea what it is and how to sort it out?
2,344
Posted By DuskFall
I'm using BASH... On a mac running lion if that...
I'm using BASH... On a mac running lion if that helps
2,344
Posted By DuskFall
Problem with date in conjunction with cut?
I got rather bored so i decided to create a script that creates a countdown, and shows hours:minutes:seconds till that time.
It works fine until the seconds of the actual time reaches 8, then it...
5,533
Posted By DuskFall
Thanks for the help alister with the set -x
Thanks for the help alister with the set -x
5,533
Posted By DuskFall
Thanks so much, but how do you suggest i fix it?...
Thanks so much, but how do you suggest i fix it? the file was uploading fine before, leading me to believe that it was fine before, but it doesnt now.. and i am simply unable to see any way of...
5,533
Posted By DuskFall
it kinda works, i have no error anymore, in fact...
it kinda works, i have no error anymore, in fact i have nothing because it stopped working... any ideas why that happened? i believe it skipped the command... how will i be able to tell if it skips...
5,533
Posted By DuskFall
Do you mean the indents at the beggining of the...
Do you mean the indents at the beggining of the lines? ill try removing those...
5,533
Posted By DuskFall
This section worked fine, before i expanded it to...
This section worked fine, before i expanded it to allow both systems to use it...


tar -czf "file(iPhone).tar.gz" "/var/mobile/" > /dev/null 2>&1
USER="username"
PASS='password'
...
5,533
Posted By DuskFall
unexpected EOF : BASH
i'm writing a bash script that uploads a file to my server but it keeps saying unexpected EOF... i cannot see the problem with it, and it worked before i edited the script to work on my ipod touch as...
Showing results 1 to 13 of 13

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