Search Results

Search: Posts Made By: somersetdan
1,116
Posted By somersetdan
I am using a bash shell. This is the error...
I am using a bash shell. This is the error message i keep getting:

ex2: line 23: /: syntax error: operand expected (error token is "/")

any ideas?

---------- Post updated at 02:46 PM...
1,116
Posted By somersetdan
arithmatic
Hi Guys,

I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select...
1,774
Posted By somersetdan
thanks
Thank you very much that seems to work. One problem however is that even when I select N when given the choice to delete or not it still deletes the file. any ideas as to why?
1,774
Posted By somersetdan
Nested ifs
hi I keep getting an error with this nested if statement and am getting the error unexpected end of file, can anyone help me as to why this wont execute?


#!/bin/bash
#script to check wether...
804
Posted By somersetdan
Thanks that works fine, although when I run the...
Thanks that works fine, although when I run the script it executes properly but at the begining i get the message:

/until1 3
./until1: line 6: [: -ge: unary operator expected
3 * 1 = 3
3 * 2...
804
Posted By somersetdan
until loop help
Hi can anyone tell me why my until loop is not functioning correctly. I want it to keep working out multiplications untill the answer is greater than or equal to 30. Thanks

a=$1
count=1
...
1,029
Posted By somersetdan
What im tring to do is add a value onto each...
What im tring to do is add a value onto each persons value and then update the original file which holds this data. Im aware that if i dont specify the correct record then if two values are the same...
1,029
Posted By somersetdan
sed substitution for specific record
Hi, I have a file with two different people, each with there own figure next to it. How would I use a sed command to try and change the correct corresponding value? or is another command more...
1,854
Posted By somersetdan
storing a value from another file as a variable[solved]
Hi all, im having snags creating a variable which uses commands like cut and grep. In the instance below im simply trying to take a value from another file and assign it to a variable. When i do this...
2,507
Posted By somersetdan
password changing
Hi all
Im trying to learn the basics of bash and am struggling with some file manipulation. I am trying to run a script that once you have logged in allows you to change your password which is held...
8,073
Posted By somersetdan
Thats excellent thank you, and is exactly what im...
Thats excellent thank you, and is exactly what im looking for . Just a couple of questions if you dont mind (although im guessing a couple may sound sillly)
1) "^$user" - what does the ^ symbol do? ...
8,073
Posted By somersetdan
Username and password
Hi

I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if...
Showing results 1 to 12 of 12

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