04-18-2020
I'm afraid I wasn't too clear. The cat I gave was NOT part of the c) option. It is meant to replace the multiple echoes starting the REPORT_NAME file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
ok, i have a script which i use to search my process' for specific keywords and kill any process containing them. there is a prompt to enter a keyword for searching and another prompt for which user you want to search the process' of. i want the script to have something that if you entered a search... (1 Reply)
Discussion started by: Blip
1 Replies
2. Shell Programming and Scripting
Hi,
I want to write a script which will count the occurence of several different strings in a log file? Can anyone help me with this? Thanks in advance! (1 Reply)
Discussion started by: mpang_
1 Replies
3. Shell Programming and Scripting
Hi My test.log file looks like this:
0 190_GSTV_HUX_003QISCGSK026_error070322_115331917.log
34 190_GSTV_HUX_003QISCGSK026_error070117_151311385.log
12 190_GSTV_HUX_003QISCGSK026_error070117_151230001.log
2 190_GSTV_HUX_003QISCGSK026_error070117_101010001.log
0... (19 Replies)
Discussion started by: kiran1112
19 Replies
4. Shell Programming and Scripting
Hi Gurus,
I am new to unix and need your help to make a shell script. I have a requirement, would appreciate if you could please help me on it:
Requirement:
-------------
I will pass 2 parameters in shell script 1). Directory name say errors 2). file extension say .log
First of all this... (4 Replies)
Discussion started by: anshulinpc
4 Replies
5. Shell Programming and Scripting
Hi,
Have to check log file for yesterday, I have tried this script, but it is showing error as -d illegal option.
res=max_total`date -d'yesterday'+%y%m%d`.log
res=max_total`date +%y%m%d`.log
this is working fine for today.
Please help me on this.
Thanks in advance,
Neha. (3 Replies)
Discussion started by: NehaKrish
3 Replies
6. Shell Programming and Scripting
Hi, Gurus,
I need a scripts to check specified file if it exists or not at certain time (say every month between 5th and 7th). if file exists do something otherwise do another thing.
can anybody help this?
Thanks in advance
:wall: (3 Replies)
Discussion started by: ken002
3 Replies
7. Shell Programming and Scripting
I haven't coded in ksh in forever and this script is proving me not a great coder. I keep getting unexpected end of file when I try to execute this...Line 94 is the last line of the code..
#!/usr/bin/ksh
. /home/oraprod/.bash_profile
DBSID=prod # Database sid
CONNECTSTR=apps/xxxxxxxx@prod #... (6 Replies)
Discussion started by: kirkladb
6 Replies
8. Shell Programming and Scripting
Hello,
Few days ago I found a person checking his mail log by AWK. But unfortunately I forget to take the command from him. Today I got to need that command badly. Here is a reference.
When I check from my mail log like this it will not show me the details.
grep "from=<noreply@panix.com>"... (2 Replies)
Discussion started by: rinti
2 Replies
9. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
10. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
clear(1) General Commands Manual clear(1)
NAME
clear - clear the terminal screen
SYNOPSIS
clear [-Ttype] [-V] [-x]
DESCRIPTION
clear clears your screen if this is possible, including its scrollback buffer (if the extended "E3" capability is defined). clear looks in
the environment for the terminal type given by the environment variable TERM, and then in the terminfo database to determine how to clear
the screen.
clear writes to the standard output. You can redirect the standard output to a file (which prevents clear from actually clearing the
screen), and later cat the file to the screen, clearing it at that point.
OPTIONS
-T type
indicates the type of terminal. Normally this option is unnecessary, because the default is taken from the environment variable TERM.
If -T is specified, then the shell variables LINES and COLUMNS will also be ignored.
-V reports the version of ncurses which was used in this program, and exits. The options are as follows:
-x do not attempt to clear the terminal's scrollback buffer using the extended "E3" capability.
HISTORY
A clear command appeared in 2.79BSD dated February 24, 1979. Later that was provided in Unix 8th edition (1985).
AT&T adapted a different BSD program (tset) to make a new command (tput), and used this to replace the clear command with a shell script
which calls tput clear, e.g.,
/usr/bin/tput ${1:+-T$1} clear 2> /dev/null
exit
In 1989, when Keith Bostic revised the BSD tput command to make it similar to the AT&T tput, he added a shell script for the clear command:
exec tput clear
The remainder of the script in each case is a copyright notice.
The ncurses clear command began in 1995 by adapting the original BSD clear command (with terminfo, of course).
The E3 extension came later:
o In June 1999, xterm provided an extension to the standard control sequence for clearing the screen. Rather than clearing just the vis-
ible part of the screen using
printf '