Search Results

Search: Posts Made By: javajynx
8,297
Posted By javajynx
Ha figured it out. Apparently I was right about...
Ha figured it out. Apparently I was right about it not liking to count arguments in a variable, it had to be added inthe command line when the script itself was called.
Thanks for your help all. My...
3,188
Posted By javajynx
YAY! it's finnaly all working correctly. I needed...
YAY! it's finnaly all working correctly. I needed both "" around the single input variables and the 2 input variables so now it recognises input with "" as one input not two. Thankyou both very much...
3,188
Posted By javajynx
grep spaces
Hi all,
I'm writing a program that scans a file for a name and/or number the user enters ie:
$ sh phone.sh "Sally Turner"
or
$ sh phone.sh Bob 12345678

I've got it mostly working except when...
8,297
Posted By javajynx
Okay it turned out that no matter what I do $#...
Okay it turned out that no matter what I do $# wasn't returning anything but 0 which is why it wasn't working correctly. I'm looking into the problem now.
8,297
Posted By javajynx
Is it perhaps because its an inputted value...
Is it perhaps because its an inputted value inside the program so it doesn't count as a command line? That might be why it's not counting arguments. Is there a way to remove the need for the user...
8,297
Posted By javajynx
Yay! thanks for that. I got the check numbers...
Yay! thanks for that. I got the check numbers grep thing working fine but it still seems to have a problem with how many arguments were entered. If i use [ -n $2 ] it just runs like there is one no...
8,297
Posted By javajynx
Mindtaker!
lol well my next question was how do I determine input is digits or not?
I tried the if echo $1 | grep -qv '[^0-9-]'
but it doesn't appear to accept it as false if I enter a name ie enter 12345678...
8,297
Posted By javajynx
if cases
Thanks for your help.
Well the first variable is 1 argument or 2, then (if 1) number or name then validating the number or name then checking if the number/name is in the document (if 2) validating...
8,297
Posted By javajynx
argument count
I'm writing a program that takes input from the user of a phone number or a name then either tells them if that entry doesn't exist in a text document or returns the entry if it does exist. But if...
2,207
Posted By javajynx
Thanks
Hey!
Thankyou for your help. It works great now
:D
2,207
Posted By javajynx
Login loop
Hi!
I'm writing a program that test wich users are on

who | cut -d' ' -f1 > users

echo "The current users are: "
sort users

then enters a loop that will wait 5 seconds then test which...
1,603
Posted By javajynx
Thanks
Thanks for that. I shall try it.

---------- Post updated at 09:03 PM ---------- Previous update was at 08:06 PM ----------

Wow that was easy! I thought it would end up extremely complex. Thank...
1,603
Posted By javajynx
Trouble with Awk
Hi all,
I'm writing a program in bourne shell that compresses a file 3 different ways then displays a table of data with the compression type, original file size, compressed size and compression...
Showing results 1 to 13 of 13

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