One Line Command how to use pipe statements to execute and comment on multiple possible outcomes
Hello Forum,
I'm looking to expand the following command:
Currently this command will check if my server is RedHat server using the grep -qi red statement. If my Server is not RedHat I echo an statement that says it's not a red hat server.
I've just discovered that if the server is Red Hat and this
results with no inactive kernels, nothing gets written out to this INACTIVE_KERNELS variable. I would like to have my one line code to either write out the Inactive Kernels or to write out a message that says "No Inactive Kernels Found".
Hi,
I am trying to test the exit status of the cleartool lsvtree statement below, but it doesn't seem to be working due to the tail pipe, which it is testing instead. Is there a way around this without adding a tonne of new code?
cleartool lsvtree $testlocation/$exe_name | tail -15
... (10 Replies)
Hi All,
Please help me to write a shell script to execute the below sql query.
select c.account_no,b.bill_no,a.pay_type,(b.total_due + b.recvd + b.adjusted + b.disputed + b.transferred) as amt_not_billed,d.cash_on_delivery,
(select j.bill_no from
billinfo_T y,
bill_t j
where... (1 Reply)
Please help me. I have been doing this for several hours.
Here is the code
if then
echo a b c d >> file.txt
echo 1111 >> file.txt
fi
The reason I want the two echo is because I want these statements printed on multiple lines. I keep getting error .
First it tells me... (2 Replies)
HI Unix Gurus,
I have a number of SELECT count(*) statements in an input file and I want to execute it using a shell script but one by one using loop in script....
How can I do this..... (7 Replies)
how can we execute multiple statements in
else condition
i have
if
then
statement
else
statements
fi
in else condition i have multiple statements
but it executing only one statement
is there any way to execute multiple statements (4 Replies)
I have set the sh file to chmod 755
i only able to print the output but cannot execute the copy why?
Below is the code for sh file
echo "Hello"
cp hello.sh helloworld.sh
Below is my code for php.
<html>
<head>
</head>
<body>
<?php echo '<p>Hello</>'; ?>
<?php shell_exec('sh... (4 Replies)
hi, I have a litle problem i wish to excute this comand :
./test.sh -e txt /home -l a
so what it says is that "-e" shows me all the extenions that are ".txt" in "home" this works but then i wish that "-l" will show all files begining in this case with the letter "a" . Both comands work... (5 Replies)
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Hi ALL,
I have a requirement like this.
1.GET ALL TABLE NAME (just table name) keep in file
2.Read line by line and get the count of table from tablename files.
tablename detail has a sql statement "db2 select tabname from syscat.tables" (1 Reply)
Is there a quick and easy way to comment out multi lined print statements? something like this?
printf("3408 strings_line_tokens %s \n",
strings_line_tokens); (6 Replies)
Discussion started by: cokedude
6 Replies
LEARN ABOUT PHP
el
el(1) General Commands Manual el(1)NAME
el -- program to make a tuned shell-command for Oneliner
SYNOPSIS
el [-acdfhioxV] [--command cmd] [--args n] [--format fmt] [--execute] [--inpipe buf] [--outpipe buf] [--serial] [--help] [--ver-
sion] [--debug]
DESCRIPTION
This manual page documents briefly the el command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation in the GNU Info format; see below.
el is a program that You can make a tuned shell-command for Oneliner with. This command can send S-exp to Emacs, and this can make Emacs
evaluate it, too. In other words, you can execute Emacs's function from shell-commands. And you can make Emacs work in closer cooperation
with your favorite shell-commands.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below. For a complete description, see the Info files.
-c cmd --command cmd
cmd means a function of Elisp. Command line arguments and data from stdin means arguments of cmd. If you specify the only -c
switch, el output one S-exp by one line of stdin.
--a n --args n
Specifies the maximum number of arguments of a Elisp function with -c switch.
-f fmt --format fmt
Allows you to use format string of printf for making a S-exp.
-x--execute
Requests to Oneliner to evaluate the S-exp to use *Oneliner auto-eval* buffer.
-i buf --inpipe buf
Gets input from pipe-buffer. You can specify a number of pipe-buffer, too.
-o buf --outpipe buf
Puts output to pipe-buffer. You can specify a number of pipe-buffer, too.
-s--serial
Makes el to serialize multiple lines to one line.
-h--help
Display help message.
-V--version
Display version identifiers.
-d--debug
Enable debugging state.
SEE ALSO
The programs are documented fully by Oneliner(Shell-mode hooks for Oneliners) available via the Info system.
AUTHOR
This manual page was written by OHURA Makoto <ohura@debian.org> for the Debian system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
el(1)