Search Results

Search: Posts Made By: ultiron
1,795
Posted By ultiron
if you double-press the tab key, it displays a...
if you double-press the tab key, it displays a list of all users commands. you may be able to cat that to a file?

its something to start with anyway.
2,404
Posted By ultiron
ahh right yea u can. I thought u meant without...
ahh right yea u can. I thought u meant without using -r. cheers for the help. using a case does look neater imo.
2,404
Posted By ultiron
cheers for the input scrutinizer. however, the...
cheers for the input scrutinizer. however, the problem was that if you enter "\" then without -r it doesnt actually get to any of your checks, as it reads the "\" as an escape character and does...
2,404
Posted By ultiron
thanks a lot methyl! in my original code I...
thanks a lot methyl!

in my original code I was checking the right variable by I retyped an easier version of what I was doing and forgot to change it.



read -r was exactly was I was...
2,404
Posted By ultiron
#!/bin/bash echo "enter a letter" read...
#!/bin/bash

echo "enter a letter"
read letter
echo $letter

lettercheck=$(echo "$letter" | grep [a-zA-Z])

if [ -z $letter ] #checks if length of string is zero
...
2,404
Posted By ultiron
Ommiting special characters as input - Help
Hey Everyone,

I'm quite new to unix (hence the 0 posts!) and im trying to write a simple program that outputs what the user types in to the screen, as long as it is a letter.

This part...
Showing results 1 to 6 of 6

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