For example, I want to store the output of
in a variable, but since it grabs the input device (stdin), it doesn't seem possible. I also want the command to exit after 1 second. How would I do that?
Hi
how to check input is "empty" and "numeric" in ksh?
e.g:
./myscript.ksh k
output show: invalid number input
./myscript.ksh
output show: no input
./myscript.ksh 10
output show: input is numeric (6 Replies)
When I debug vmlinux with gdb, after it connect to the target, I got below output:
usbcore.ko: No such file or directory.
Error while mapping shared library sections:
ohci_hcd.ko: No such file or directory.
Symbol file not found for usbcore.ko
Symbol file not found for ohci_hcd.ko
Symbol... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi All,
I'm completely new to bash scripting and still learning my way through albeit vey slowly.
I need to know where to insert my server names', my ip address numbers through out the script alas to no avail.
I'm also searching on how to save .sh (bash shell) script properly.... (25 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I've found this script part on the stackoverflow:
if ; then
sudo bash "$0" "$@";
exit "$?";
fi
I realized that sudo bash "$0" "$@"; is the only needed for me.
But the strange thing happens when I move this line outside the IF statement:
sudo bash "$0" "$@"; stops the... (9 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT LINUX
bashbug
BASHBUG(1) bashbug BASHBUG(1)NAME
bashbug - report a bug in bash
SYNOPSIS
bashbug [--help] [--version] [bug-report-email-addresses]
DESCRIPTION
bashbug is a utility for reporting bugs in Bash to the maintainers.
bashbug will start up your preferred editor with a preformatted bug report template for you to fill in. Save the file and quit the editor
once you have completed the missing fields. bashbug will notify you of any problems with the report and ask for confirmation before
sending it. By default the bug report is mailed to both the GNU developers and the Debian Bash maintainers. The recipients can be changed
by giving a comma separated list of bug-report-email-addresses.
If you invoke bashbug by accident, just quit your editor. You will always be asked for confirmation before a bug report is sent.
OPTIONS --help
Show a brief usage message and exit.
--version
Show the version of bashbug and exit.
bug-report-email-addresses
Comma separated list of recipients' email addresses. By default the report is mailed to both the GNU developers and the Debian Bash
maintainers.
ENVIRONMENT
DEFEDITOR
Editor to use for editing the bug report.
EDITOR
Editor to use for editing the bug report (overridden by DEFEDITOR).
SEE ALSO bash(1), reportbug(1), update-alternatives(8) for preferred editor.
AUTHOR
This manual page was written by Christer Andersson <klamm@comhem.se> for the Debian project (but may be used by others).
GNU Bash 3.1 11 December 2007 BASHBUG(1)