Sponsored Content
Top Forums Shell Programming and Scripting Need help with Bash scripting using nano editor Post 302560829 by SANA4SPA on Saturday 1st of October 2011 02:34:28 PM
Old 10-01-2011
Thank you ahamed101, it worked great.Smilie Where can I get more information on the use of the option -z and
[ -z "$choice" ]
display()
{}
I would like to learn more about this functions.
again a million thanks.Smilie
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Scripting

Hello there peeps: There is a little piece of bash shell scripting problem i have, which i was hoping you could help me with. #!/bin/bash stored_word() { case $(( $$ % 8 )) in 0 ) echo "energy";; 1 ) echo "touch";; 2 ) echo "climbing";; 3 ) echo... (3 Replies)
Discussion started by: keyvan
3 Replies

2. Shell Programming and Scripting

please help with Bash Scripting????

Hi, can anyone help me with my scrip please. I wanted do following tasks: 1. List all the directory 2. A STDIN to ask user to enter a directory name from listed directories 3. command to check if the directory exists( or a command to validate if the user entered a valid directory name) ... (2 Replies)
Discussion started by: eminjan
2 Replies

3. Shell Programming and Scripting

bash scripting help

have this code but when i run it i get this error ./pulse: line 2: and here is the code #!/bin/bash if ; then pulseaudio -k; fi what am i doing wrong thanks Adam (5 Replies)
Discussion started by: ab52
5 Replies

4. Shell Programming and Scripting

Bash scripting

Try to imagine a flag: nnnnx nnnxx nnxxx nxxxx now imagine how it will output: 4 times the "n"and 1 times "x" 3 times "n"and" 2 times" x " .. etc. .. rhombus is the same only instead of "n" is there gap "and " x "is a few times to form the correct shape Can you help... (3 Replies)
Discussion started by: krcek12
3 Replies

5. Shell Programming and Scripting

[Solved] Help with running ps -e | less on nano script editor

p { margin-bottom: 0.08in; } This is just a portion of a script I'm writing on Linux nano script editor. When I run the script I get stuck on the ps -e | less command portion of the script:wall:. It displays all the process running but it does not allow me to move to the next line on the script.... (2 Replies)
Discussion started by: SANA4SPA
2 Replies

6. Shell Programming and Scripting

bash scripting help

Hi Guys i have a <script?> that spits out the location of each printer using snpget here is the code for i in `sed -n '/Start Printer/,/End Printer/p' /hosts/blah/etc/dhcp/hosts.conf | awk '!/^#/ {print $2}' | egrep -v \... (2 Replies)
Discussion started by: ab52
2 Replies

7. Shell Programming and Scripting

bash scripting

same script: 1- i am using grep to find a string called: tinker panic 0 in a file /etc/ntp.conf if the string is not there, i want to add the strings in /etc/ntp.conf file in the first line of the file. if not do nothing or exit. 2- also i want to add # in front of the following lines in... (0 Replies)
Discussion started by: lamoul
0 Replies

8. Homework & Coursework Questions

Bash Scripting

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Try running 'phone4 xyz' and see what happens. Modify your program so that if no matching name is found, an... (1 Reply)
Discussion started by: OmgHaxor
1 Replies

9. UNIX for Beginners Questions & Answers

Vim, vi and nano editor shows help.txt automatically

Hi, Whenever i try to open a file in any editor like vi, vim and nano i get this help.txt showing up in split screen without any key being pressed. This continues to pop up even when i close the help.txt. This behavior happens only when i am connected via putty. Is there a fix to this issue? ... (1 Reply)
Discussion started by: sunil0391
1 Replies
Config::Model::models::LCDd::MtxOrb(3pm)		User Contributed Perl Documentation		  Config::Model::models::LCDd::MtxOrb(3pm)

NAME
Config::Model::models::LCDd::MtxOrb - Configuration class LCDd::MtxOrb VERSION
version 2.021 DESCRIPTION
Configuration classes used by Config::Model generated from LCDd.conf Elements Device Select the output device to use Optional. Type uniline. upstream_default: '/dev/lcd'. Size Set the display size Optional. Type uniline. upstream_default: '20x4'. Type Set the display type Optional. Type enum. choice: 'lcd', 'lkd', 'vfd', 'vkd'. upstream_default: 'lcd'. Contrast Set the initial contrast NOTE: The driver will ignore this if the display is a vfd or vkd as they don't have this feature. Optional. Type uniline. upstream_default: '480'. hasAdjustableBacklight Some old displays do not have an adjustable backlight but only can switch the backlight on/off. If you experience randomly appearing block characters, try setting this to false. Optional. Type enum. choice: 'yes', 'no'. upstream_default: 'yes'. Brightness Set the initial brightness Optional. Type integer. upstream_default: '1000'. OffBrightness Set the initial off-brightness This value is used when the display is normally switched off in case LCDd is inactive. Optional. Type integer. upstream_default: '0'. Speed Set the communication speed Optional. Type enum. choice: '1200', '2400', '9600', '19200'. upstream_default: '19200'. KeyMap_A The following table translates from MtxOrb key letters to logical key names. By default no keys are mapped, meaning the keypad is not used at all.Optional. Type uniline. default: 'Left'. KeyMap_B Optional. Type uniline. default: 'Right'. KeyMap_C Optional. Type uniline. default: 'Up'. KeyMap_D Optional. Type uniline. default: 'Down'. KeyMap_E Optional. Type uniline. default: 'Enter'. KeyMap_F Optional. Type uniline. default: 'Escape'. keypad_test_mode See the [menu] section for an explanation of the key mappings You can find out which key of your display sends which character by setting keypad_test_mode to yes and running LCDd. LCDd will output all characters it receives. Afterwards you can modify the settings above and set keypad_set_mode to no again.Optional. Type uniline. default: 'no'. SEE ALSO
o cme perl v5.14.2 2012-11-09 Config::Model::models::LCDd::MtxOrb(3pm)
All times are GMT -4. The time now is 01:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy