10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
for s in `cat s.txt`
uptime $s >>error_log
echo $s >>error_log
The above code produce output with server name and its uptime in 2 different lines .My requirement is to have the same in one line . Please assist (3 Replies)
Discussion started by: vinil
2. UNIX for Dummies Questions & Answers
Below is the list of steps i need to perform manually as of now and completely new to shell scripting, could you help in writing a shell script to perform the below procedure?
1. Log in to primary DNS server
2. Check /etc/named.conf if zone is already created (grep –i... (2 Replies)
Discussion started by: VKIRUPHAKARAN
3. Shell Programming and Scripting
Hi, I'm very new to this, so bear with me please.
I want to write a sh script (or if there's a better format please let me know) that allows me to, when I run it, print the date to a file (1.out) take 2 arguments (files a.fa and b.fa), run them with another program, outputting to 2.out, and then... (2 Replies)
Discussion started by: ShiGua
4. Shell Programming and Scripting
I am writing my own shell using c. I meet with two problems.
First, when I use tcsetpgrp system call to move a background job to foreground, when this job finishes, my shell program also exit. What is the problem for that?
Second, when I use signal , if the child has its own... (1 Reply)
Discussion started by: tomlee
5. Shell Programming and Scripting
I have two files a.log and b.log . i need to append a.log and b.log so that at the end of first line in a.log i need the append the data of first line from b.log and end of the second line in a.log i need to append the data of second line from b.log and so on up to the end of the file
can... (3 Replies)
Discussion started by: lalu
6. Shell Programming and Scripting
I am trying to update a script which I had created to monitor tablespace usage.
Originally the sql spooled out to a text file anything with more than 75% used.
I have been asked to change this.
Now the sql must spool out all tablespaces.
The script I have to write should scan the file for... (4 Replies)
Discussion started by: Niadh
7. Shell Programming and Scripting
I am a new for shell script. i need to write script using the following commands
# create directory
mkdir temp+DATE( i need to append date )
#moving files from one directory to this directory(we need to check total files in source and taget)
... (2 Replies)
Discussion started by: bmkreddy
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
9. Shell Programming and Scripting
I am fresher in Unix . i need help to write small shell script . Please help me unix guru.
I am developing the internal site in my office . the data files are generated in one directory everyday .
I have to write shell script to sort those files and put it is internal site .
... (3 Replies)
Discussion started by: deepa20
10. UNIX for Dummies Questions & Answers
How to write a shell script file to read 5 numbers using a while loop. Finding the average, maximum and minumum for the numbers.
Any help would be great. (1 Reply)
Discussion started by: Chin