Sponsored Content
Full Discussion: Read command
Top Forums UNIX for Beginners Questions & Answers Read command Post 302980985 by jimmyf on Monday 5th of September 2016 11:39:00 PM
Old 09-06-2016
Yes it was the typo, works well thank you.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read command

'Morning vmstat 1 1|sed 1,2d|awk '{printf("%s\n",$1)}'|read var echo $var This syntax run on AIX (ksh) but not on linux (bash). I think that problem is the read command, because the following syntax is ok : vmstat 1 1|sed 1,2d|awk '{printf("%s\n",$1)}' Could someone help me! regards... (16 Replies)
Discussion started by: nymus7
16 Replies

2. Shell Programming and Scripting

read command

I have file which is space filled likE below Note: here spaces are replaced by |. When I use read command to read this file all the spaces are truncated only the default space is not removed. The output is Note: here spaces are replaced by |. Can this default truncation be override? (4 Replies)
Discussion started by: COD
4 Replies

3. Shell Programming and Scripting

Regarding read command

Hi all, What does -u option indicates in read command. while read -u var1 do . . done < file.txt (1 Reply)
Discussion started by: krishna_gnv
1 Replies

4. Shell Programming and Scripting

read command in while

hi all iam not able use read command in the while loop in the following program while read line do echo $line echo "enter name" read name echo "your have entered $name" done < work.txt THE READ COMMAND INSIDE THE WHILE LOOP IS NOT WORKING, IS ANY OTHER WAY TO SOLVE THIS... (7 Replies)
Discussion started by: avi.skynet
7 Replies

5. Shell Programming and Scripting

read command

Is there a way to use the READ command and force the user to enter a non-zero length string? If the user enters a zero length string the user input is rejected. code: print "what is the answer: \n" read answer (2 Replies)
Discussion started by: djehresmann
2 Replies

6. UNIX for Dummies Questions & Answers

Read command

Hi everyone, I have problem while writing a shell script for linux (Red Hat). First I need to create a read command. I tried to google this but so far I can't sort this out. I hope you will be able to help me. I have to read a file like this : GESTION_DATA_SET_variable1_variable2 ... (2 Replies)
Discussion started by: Aswex
2 Replies

7. UNIX for Dummies Questions & Answers

read command - using output from command substitution

Hey, guys! Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek: So, I wanted to use a command statement similar to the following. This is kinda taken... (2 Replies)
Discussion started by: ProGrammar
2 Replies

8. Shell Programming and Scripting

read command

Hello guys, I am trying to a script that reads from key board and use the entered value in the next step. Example: enter folder name read $folder (i will give work) cd /main/$folder/ pwd it should print /main/work ---------- Post updated at 03:31 PM ----------... (1 Reply)
Discussion started by: sharath24
1 Replies

9. Shell Programming and Scripting

Read from file and execute the read command

Hi, I am facing issues with the below: I have a lookup file say lookup.lkp.This lookup.lkp file contains strings delimited by comma(,). Now i want to read this command from file and execute it. So my code below is : Contents in the lookup.lkp file is : c_e,m,a,`cd $BOX | ls cef_*|tail... (7 Replies)
Discussion started by: vital_parsley
7 Replies

10. UNIX for Beginners Questions & Answers

Need help with read command

Is there a way to make the input of the read command (or some similar command that I'm unaware of) not visible, or with an astrix?? An example: #!/bin/bash # Example echo; echo "Who are you??"; read name if ; then echo "Welcome, the terminal is yours."; exit else "Stranger... (2 Replies)
Discussion started by: Huitzilopochtli
2 Replies
LSMBOX(1)						      General Commands Manual							 LSMBOX(1)

NAME
lsmbox - list number of total, old unread, and new messages for the specified mailbox(es) SYNOPSIS
lsmbox [OPTION]... [MAILBOX]... DESCRIPTION
lsmbox lists the number of messages in a mailbox. Both total, unread but old, and new messages can be listed, for one or several mailbox files. Non-existing or empty mailboxes will be silently ignored. If the program has been compiled with curses support, you can execute a predefined command on a mailbox by choosing that mailbox using the cursor keys and pressing enter. If the program has been compiled with ncurses, the command can also be executed by clicking on the mailbox with the mouse-pointer. By default, lsmbox will look in $MAIL (if defined) or /var/spool/mail/USERNAME for the inbox, and in $HOME/Mail/ for other mailboxes. This can be overridden by changing the default paths in $HOME/.lsmboxrc. See lsmboxrc(5) for further details. If $HOME is not defined on your system, the program will look in the current directory for mailboxes. If no mailbox is given as an argument, the program will default to listing information about the mailboxes listed in $HOME/.lsmboxrc. If no default mailboxes have been specified in that file, or if that file does not exist, the program will abort with an error. A filename of ! denotes your inbox. A leading ("=") or ("+") in a filename will be expanded into the path to your mail-directory. If the name of a mailbox given at the command-line contains a path-separator ("/"), it is assumed that the default mailbox path shall be ignored for that entry, unless it has a leading ("=") or ("+"). OPTIONS
-c, --continuous Update statistics continuously rather than just listing them once. Exit with `q' (waits for the next mailcheck to finish) or `<ctrl> + c' (aborts immediately). Note: this option is only available if the program has been compiled with curses support -i, --check-interval Interval in seconds between each update of the statistics. This option overrides the environment variable $MAILCHECK. Using a low interval will give you faster notification of newly arrived e-mail, but will put increased load on your system. Note: this option is only available if the program has been compiled with curses support -n, --new-only Only display mailboxes with new messages (and old unread, if the mark_old option has been unset) -o, --no-old Do not display the number of old messages each mailbox contains -p, --padding Width to use for the mailbox column; leave empty to use the smallest possible -s, --no-summary Do not display a summary of the statistics for all mailboxes -S, --short-names Only display the name of the mailbox rather than the full path -t, --no-total Do not display total number of messages each mailbox contains --help Display help for the command --version Display version and author information ENVIRONMENT
MAILCHECK Interval in seconds between each update of the statistics. EXAMPLES
To get information about your inbox: lsmbox ! To get information about the mailboxes debian-devel, linux-kernel, and spam: lsmbox debian-devel linux-kernel spam To get information about the mailbox test which resides in your home directory: lsmbox ~/test To use lsmbox to keep track of updates in all mailboxes listed in $HOME/.lsmboxrc: lsmbox -c FILES
$HOME/.lsmboxrc Personal preferences for lsmbox. SEE ALSO
lsmboxrc(5), mbox(5) HISTORY
Apr 16 2006: Updated for v2.1.0 of lsmbox. Apr 16 2004: Updated for v2.0.0 of lsmbox. Mar 13 2004: Updated for v1.9.0 of lsmbox. Mar 15 2003: Updated for v1.7.0 of lsmbox. Jan 16 2003: Minor fixes. Jan 06 2003: Minor fixes. Dec 09 2002: Minor fixes. Nov 06 2002: Updated for v1.5.0 of lsmbox. Oct 30 2002: Updated for v1.4.2 of lsmbox. Oct 30 2002: Fixed a typo. Oct 30 2002: Updated for v1.4.0 of lsmbox. Oct 29 2002: Updated for v1.3.1 of lsmbox. Oct 29 2002: Updated for v1.3.0 of lsmbox. Oct 28 2002: Fixed a typo. Oct 26 2002: Updated for v1.1.0 of lsmbox. Oct 26 2002: Updated for v1.0.1 of lsmbox. Oct 21 2002: Initial release. AUTHOR
lsmbox and its manual-pages are written by David Weinehall <tao@acc.umu.se> REPORTING BUGS
Report bugs to <tao@acc.umu.se>. COPYRIGHT
Copyright (C) 2002-2006 David Weinehall This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. David Weinehall Apr 16, 2006 LSMBOX(1)
All times are GMT -4. The time now is 08:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy