10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.
Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname $(hostname)
echo Working in $(pwd)
echo Here is this month calender
echo $(cal)
$ sh first.sh... (7 Replies)
Discussion started by: chandrakanth
7 Replies
2. Shell Programming and Scripting
hi friends,
I am working on extracting data from sar logs for analysis.
What is want to do is insert the date. The way i am doing is incrementing the date if i see the hour gets reduced (i.e. from 23 hours to 00 hours). Somehow the script which i have made is not able to handle the logic w.r.t... (3 Replies)
Discussion started by: kunwar
3 Replies
3. Shell Programming and Scripting
hi Friends,
I am writing a shell script to extract data from sar logs for my daily analysis.
I have this in sar logs
HP-UX dhpcdbe1 B.11.31 U ia64 05/09/12
01:22:42 device %busy avque r+w/s blks/s avwait avserv
01:27:59 disk30 8.79 13.72 26 427 36.47 ... (3 Replies)
Discussion started by: kunwar
3 Replies
4. Shell Programming and Scripting
Hi,
I am writing a script which processes large number of files in a directory. I wanto display a counter which increment after processing each file. I am processing each file in a for loop. If I echo a variable with its value increasing with each file, I will get around 5000 lines as output.... (10 Replies)
Discussion started by: jaiseaugustine
10 Replies
5. Shell Programming and Scripting
Hi ,
I am not familiar with shell programming. I have a requirement like i have two files
.I need to compare the two files by comparing each parameter and i should produce 2 outputs.
1)i have around 35 parameters say i have one parameter name called db_name=dcap in one file and... (7 Replies)
Discussion started by: muraliinfy04
7 Replies
6. Shell Programming and Scripting
Hello friends,
I am a script which dispalys a multiple files with their contents.
for exm:
suppose two file test1.txt and test2.txt.
when I run my script it have to display the below O/P.
test1.txt
-rw-r----- 1 sranga staff 91 Sep 23 02:18 calc.sh
-rw-r----- 1 sranga ... (2 Replies)
Discussion started by: sivaranga001
2 Replies
7. UNIX Desktop Questions & Answers
how can i know which users have logged in at specified given start and end time in 24 hour format? (3 Replies)
Discussion started by: meherzad4u
3 Replies
8. Shell Programming and Scripting
Hello,
I have to create shell script being myself real novice in scripting...
I was looking on the Internet for some script examples, but I don't have the basic understanding of the shell. I was trying to do something with “ps” command without success.
For exemple total number of... (2 Replies)
Discussion started by: mr_awd
2 Replies
9. Shell Programming and Scripting
please help
shell script that adds two intergers and display answer on screen (1 Reply)
Discussion started by: wanyac2
1 Replies
10. UNIX for Dummies Questions & Answers
I remember learning that there is a way to make a shell script display the script itself to standard output while the script is being executed but I can't find how to do that. Any pointers? (2 Replies)
Discussion started by: wmosley2
2 Replies