Hi, how do I write this condition in korn shell:
file="*.html"
if
then
echo "$file"
fi
I am trying to find all html files from a input text file that were created today and ftp them to a different server. please help. (1 Reply)
Hi I am new to shell programming. I need help to write a script to monitor a process on Sun OS. If the process fails then call a oracle procedure.
i check the process if running by typing
ps -ef | grep ESP | grep -v grep
root 29002 1 0 Mar 18 ? 7:20... (4 Replies)
Everything else seems to be working, but this isn't. Is it the "cat..." that is wrong of the condition? Thanks.
cat tc_result.txt | while read LINE
do
if
then
let "files_run += 1";
echo "inside the if loop"
# save current filetype
case $LINE... (5 Replies)
Hello:
I'm a newbie to Unix/Linus and shell scripting.
This is probably a stupid question but here goes.
Some people at work use Korn for scripting while others use Bash. What is the difference between the two? If the two is better to use?
When a person logs in, one will type... (9 Replies)
Hi,
Im trying to write this script but im stuck on it, basicaly what i want to do is to write a code to verify a log file ( apache log file for example ) and for each new line with specific data , then, output this new line for another file:
full ex:
output of the server.log is (... (4 Replies)
Hi guys,
I am new to unix scripting.
I have a folder rx and it has subfolders rx1,rx2 and rx3
each subfolder has 4 directories each load,land,arch and extr
I have the below tar and rm commands using wich we should write a shell script
rx1--
tar -cf... (2 Replies)
I am relatively new to shell scripting. I have a script I wrote that works fine in korn shell.
I need to make it work in bash on a different server.
There are a couple valid korn shell commands I am having difficulty finding the bash equivalents for.
At one point the scripts prompts the... (5 Replies)
I am new to korn shell and slowly learning. Is there a way to have a parent script prompt for input and then execute a child script and return the output then move forward and ask for more input and then execute the next child script? I think the answer is no but thought i would ask. (2 Replies)
Migrating Unix batch jobs (Korn Shell) running in HP-UX server to Linux environment.
Hi All
Please help me to understand the easiest way to migrate Kernel Shell scripts to Linux Bash. Also let me know
1. Any automated scripts or tools available for this.
2. Challenges and issues... (5 Replies)
Discussion started by: cpremesh
5 Replies
LEARN ABOUT V7
signbit
SIGNBIT(3) Linux Programmer's Manual SIGNBIT(3)NAME
signbit - test sign of a real floating-point number
SYNOPSIS
#include <math.h>
int signbit(x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
signbit():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
DESCRIPTION
signbit() is a generic macro which can work on all real floating-point types. It returns a nonzero value if the value of x has its sign
bit set.
This is not the same as x < 0.0, because IEEE 754 floating point allows zero to be signed. The comparison -0.0 < 0.0 is false, but sign-
bit(-0.0) will return a nonzero value.
NaNs and infinities have a sign bit.
RETURN VALUE
The signbit() macro returns nonzero if the sign of x is negative; otherwise it returns zero.
ERRORS
No errors occur.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+----------+---------------+---------+
|Interface | Attribute | Value |
+----------+---------------+---------+
|signbit() | Thread safety | MT-Safe |
+----------+---------------+---------+
CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99. This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854).
SEE ALSO copysign(3)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-09-15 SIGNBIT(3)