10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
i am not able to work this out, i need to write a script to monitor the usage of IO DISK READ whenever the IO is above 600MB it will send an email.
So far not able to. Hope you guys can assist me. Thanks!
# iotop -bot --iter=3 |grep DISK|egrep -v TIME
05:22:04 Total DISK READ : ... (8 Replies)
Discussion started by: jaapar
8 Replies
2. Shell Programming and Scripting
How to insert header with underline
AM able to insert only header not underline
sed '1i NAME COUNTRY' test.txt
input file
UK 1234
USA 2354
AUS 2253
IND 4256
Output file
NAME COUNTRY_CODE
---- ------------
UK 1234
USA 2354
AUS 2253
IND 4256 (5 Replies)
Discussion started by: Kalia
5 Replies
3. Shell Programming and Scripting
Hi,
i have sh program which search for a file in a folder structure and provides its path. This is just used to see if that file exits more that once anywhere down the folder structure. I have used find command to search & printing it output on terminal.
I have attached screen shot of it.... (10 Replies)
Discussion started by: praveenkumar198
10 Replies
4. Shell Programming and Scripting
Input file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Desired output file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Column 1 is the start region of underline the text in column 3;
Column 2 is the end region of... (13 Replies)
Discussion started by: cpp_beginner
13 Replies
5. Shell Programming and Scripting
hi I want to write a script, while using the SED editor, to output the text, in this case a variable, to the result file but highlighted it in bold, is it possible to do that? can you tell me how?
eg. in text.txt
sed '$ a\
'$variable'
' <text.txt >text2.txt
so it will add the... (2 Replies)
Discussion started by: piynik
2 Replies
6. Shell Programming and Scripting
Hi All,
This is my first port.....
I am using AIX 5L, installed 10g database.
On daily basis we takes rman backup.
This backup status info strored in a log file.
I write a script to know the status of back means I will fire this script and this script will send a mail to me.
#!/bin/bash... (16 Replies)
Discussion started by: mcagaurav
16 Replies
7. Shell Programming and Scripting
I have a script main.shl which has few lines like this
#bold
tput smso
echo "\t\tsome statement\t\t"
tput rmso
I am executing the main.shl from the shell and redirected its output to a separate file like this
$main.shl >main.log 2>&1 &
once after running this script, if I "cat" the... (0 Replies)
Discussion started by: ramkrix
0 Replies
8. Shell Programming and Scripting
I'm trying to "paste" two files but the result is not aligned.
File1 looks like this:
dog.csv
cat.csv
elephant.csv
cougar.csv
File2 looks like this:
2323
33
444
545545
Then I run a paste command:
paste File1 File2 > result.cnt
Then result.cnt file is created like this:... (4 Replies)
Discussion started by: jplayermx
4 Replies
9. Shell Programming and Scripting
i want to print underline under a text using shell or awk.can any body help me regarding this problem?
i hav tried with
echo -e -n "\033$4}'
like expected output is
123 456 12
122 567 13
211 087 14
311 987 15
like the avove
Thank you
regards,
Pankaj. (2 Replies)
Discussion started by: panknil
2 Replies
10. UNIX for Dummies Questions & Answers
I want to print a man page for a command in unix, this is what I did
man command > command.txt
but when I view the output file command.txt I found there are lot of _^H characters that in the man page are actually underline character, how can I replace this _^H with underline character?
... (2 Replies)
Discussion started by: Melissa
2 Replies