9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
2. Shell Programming and Scripting
Hi Team,
a silly question.
Let's say i have a script called xyz.ksh
what is the difference in executing the script as follows?
./xyz.ksh
ksh xyz.ksh
Thanks (2 Replies)
Discussion started by: kmanivan82
2 Replies
3. Shell Programming and Scripting
Hi,
So I have a very simple script which loops over 5 times and prints the iterator value.
#!/bin/sh
START=1
END=5
for i in $(eval echo "{$START..$END}")
do
echo "$i"
done
If I save this script in a .sh file and run it in the terminal, the output I get is
{1..5} (4 Replies)
Discussion started by: jamie_123
4 Replies
4. Shell Programming and Scripting
Hi Guys,
What is difference between this two lines in script
logger -p daemon.info -t postback Starting /opt/local/bin/backup-report
and
/opt/local/bin/backup-report
is the backu script running twice here?
Thanks, (2 Replies)
Discussion started by: manalisharmabe
2 Replies
5. Programming
I think both write at the end of the file ......
but is there a sharp difference between those 2 instruction .....
thank you
this is my 3rd question today forgive me :D (1 Reply)
Discussion started by: fwrlfo
1 Replies
6. Shell Programming and Scripting
Hey everyone,
I have two folders (folder1, folder2). Folder2 is a compiled version of a bunch of other folders including folder1. I want to compare folder1 to folder2 to make sure that folder2 contains all of the contents of folder1. If it does not, I would like the script to output... (5 Replies)
Discussion started by: chango77747
5 Replies
7. Shell Programming and Scripting
Hey there,
I just stumbled upon a difference between using awk on the commandline and using it in a shellscript.
I have a variable, e.g.: PROG=vim
then i want to check if the package with this name is installed: TEMPVAL=$(dpkg -l | awk '{ if ($2 == "$PROG") print $2 }') (Im using... (10 Replies)
Discussion started by: MrSnail
10 Replies
8. Shell Programming and Scripting
Hi i've written a script which reads last two line of the log file from N number of servers and send the mail by redirecting to a particular log file.
And the two lines is displayed below.
Oracle Q03 Begin Hot BACKUP Time: 07/23/08 18:35:46
Oracle Q03 End Hot BACKUP Time: 07/24/08 14:18:15... (1 Reply)
Discussion started by: suri.tyson
1 Replies
9. Shell Programming and Scripting
Can anyone tell me the difference between the following
execution ways:
1) . ./filename
2) ./filename
Also when to use the either. (8 Replies)
Discussion started by: Shivdatta
8 Replies