Sponsored Content
Top Forums UNIX for Dummies Questions & Answers checking wether an input is using letters of the alphabet Post 302338264 by mrtiller on Monday 27th of July 2009 11:27:12 AM
Old 07-27-2009
Code:
#!/bin/sh

while read LINE
do
        case "$LINE" in
        [A-Za-z]) echo "alpha";;
        *) echo "not alpha";;
        esac
done

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What can i do to check that the input is all alphabet.. ?

What can i do to check that the input is all alphabet.. ? (4 Replies)
Discussion started by: XXXXXXXXXX
4 Replies

2. Programming

output the letters of the alphabet with the number of occurrences

hi, I'm trying to create a program that will read a file and then check the file for each letter of the alphabet and then output the letter and the number of times it appears in the file, into a new file... this is what i have so far but it's not working.. if anyone could help that would be nice!... (10 Replies)
Discussion started by: svd
10 Replies

3. UNIX for Dummies Questions & Answers

checking wether an inputed character is already in a variable

Hi, i have a variable which holds a variety of letters. eg, var=qwertyuiop what i want to do is determine wether an inputed letter is already stored inside the variable, so i can say to enter a new one. i have been playing around using tr and grep but nothing seems to work at all. ... (2 Replies)
Discussion started by: castillo
2 Replies

4. Shell Programming and Scripting

Checking input for being numeric and integers

Hi, I'm trying to check to see that the arguments given to my script are both numeric and positive integers. I'm using tcsh. I figured out the positive part, but I am having trouble with the arguments being numeric and integers I have no idea where to get started with the checking them actually... (1 Reply)
Discussion started by: mistykz
1 Replies

5. Shell Programming and Scripting

Checking input is Numerical

Hey guys, i was looking for some examples of how can i check if the use input is just using numerical. i came across an example using tr : echo "read this" read this if ]`" ] ; then echo "True - only alpha and numeric" else echo "False - there are NON alpha and numeric stuff here!" fi... (7 Replies)
Discussion started by: gregarion
7 Replies

6. Shell Programming and Scripting

checking users input to file

ok im sorta stuck on this, The user enters a car model and it has to check it in a text file in the current directory. If the car model is not in the file, user has to enter another model This is what i have so far read -p "Enter a car model: " car1 grep -w $car1=$(cat carMakes.txt)... (3 Replies)
Discussion started by: gangsta
3 Replies

7. Shell Programming and Scripting

Checking subset and removing extra letters

In each line of file, I wish to check if word1 is a non-connected subset of any of the other words in the line. If yes, keep only the words that ward1 is a subset of. Else, remove the whole line. Also, I want to remove the letters that word1 doesn't match with, except for "_+" Example file:... (2 Replies)
Discussion started by: Viernes
2 Replies

8. Solaris

Escape Sequence for Capital Letters Input at Shell Not Working

Hello, I am running Solaris 8. When issuing the command "stty lcase" all text which is output to the terminal are capitalized. Letters that are supposed to be capitals are preceded by a backslash during output. All text which is input is converted to lower case. This is the expected behaviour... (5 Replies)
Discussion started by: rstor
5 Replies

9. UNIX for Dummies Questions & Answers

Best Alternative for checking input parameter contains required value or not

Any good way to check if code has the required output # /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts net.ipv4.icmp_echo_ignore_broadcasts = 1 /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts | grep "= 1" net.ipv4.icmp_echo_ignore_broadcasts = 1 What I can think of is above, and it... (16 Replies)
Discussion started by: alvinoo
16 Replies

10. Shell Programming and Scripting

Would like to check user input for letters within a loop

Hi All, #!/bin/bash #Just trying to check if letters are in the user input. Any tips? # I have tried regexp and using 0-9 etc, i cannot get this to work either in just an if statement or while in a loop. echo "Please pick a number" read num if ; then echo "Please enter a number"... (7 Replies)
Discussion started by: jvezinat
7 Replies
sciteproj(1)						      General Commands Manual						      sciteproj(1)

NAME
SciteProj - a Project Manager for the SciTE editor DESCRIPTION
SciteProj is a Project Manager for the SciTE editor - It is used to group a bunch of files into a project for easy access in SciTE giving the possibility to group files in folders, and saves the project to disc in XML format. It is based on the program ScitePM by Roy Wood. It uses the director interface of SciTE to communicate between SciTE and SciteProj. OPTIONS
-s, --scite FILENAME Sets the filename for the instance of SciTE to open. -v, --version Displays the version number of SciteProj -g, --generate=XML_FILENAME Generate a sciteproj project file with the name FILENAME from the contents of the current folder. This option will not consider adding hidden files to the generated project. -m, --max_depth=MAX_DEPTH Set maximum depth of folders to read through to MAX_DEPTH when generating project file. -h, --help Display a short help CONFIG FILE
The config file that SciteProj is using is named sciteprojrc, and is loaded from the directory that the glib function g_get_user_config_dir is returning. Normally this is ($HOME)/.config/ - If this file isn't found, sciteproj searches for the file .sciteproj located in the users $HOME directory. It is loaded on every program start. There is a menuitem in the program to open the file directly in SciTE for edit- ing. If there isn't a .sciteproj in the user home when starting SciteProj, one will be created filled with default values. The following options are supported in the config file: xpos, ypos, xsize and ysize Specifies the position and size of the program window on start give_scite_focus Specifies wether SciTE shall get focus when opening a file from SciteProj (TRUE or FALSE) dirty_on_folder_change Specifies wether SciteProj shall flag your project as dirty when you exapand or collapse a folder (TRUE or FALSE) allow_duplicates Specifies wether several files with the same name should be allowed in one project (TRUE or FALSE) identify_sciteproj_xml Specifies wether SciteProj shall try to recognize XML files saved by SciteProj (TRUE or FALSE) search_xpos, search_ypos, search_width, search_height The position of the search dialog when opened. If any of these values are set to -1, a default will be selected. search_match_case Should the search dialog check the Search match case option by default search_match_whole_words Should the checkbutton Match whole words be checked in the search dialog by defualt search_give_scite_focus Should the SciTE window be focused when double-clicking a search result in the search dialog? search_file_alert_warning If the project contains filename that doesn't exist on disk, should SciteProj give a warning during search? AUTHOR
SciteProj was written by Andreas Ronnquist <gusnan@gusnan.se>. Version 0.7.05 20 March 2012 sciteproj(1)
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy