9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am getting some strange behaviour from the kill command. When I run the which command it says it points to /usr/bin/kill. When I look at my PATH I have /usr/bin in it. So why does running kill or /usr/bin/kill produce different outputs?
ghost ~
$ which kill
/usr/bin/kill
ghost ~
$ kill... (5 Replies)
Discussion started by: cokedude
5 Replies
2. UNIX for Beginners Questions & Answers
Linux Release
Uname details
Data file
Ive been at the command line for some time. Back as far as SCO and Interactive Unix. I have always used this construct without issues. I want to isolate the ip / field 1. As you can see .. the first line is "skipped".
This works as... (6 Replies)
Discussion started by: sumguy
6 Replies
3. Shell Programming and Scripting
Hi
I run the below command to find and delete *.xml files 90 or more days old.
find . -type f -name '*.xml' -mtime +90 -exec rm {} \;
find: stat() error ./Hello/2014_EMPTY.xml: No such file or directory
./Hello/2014_EMPTY_8011.xml: No such file or directory
.....
....
If the file... (10 Replies)
Discussion started by: mohtashims
10 Replies
4. Shell Programming and Scripting
Hello Team,
Could you pls explain how export command works in below code:
for i in ${!SDV_*}; do
export $i
done
As per my understanding, if
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2then in for loop below export will get executed.
export var1;export var2But, Will this... (3 Replies)
Discussion started by: chandana.hs
3 Replies
5. UNIX for Advanced & Expert Users
Centos 5.8
Lets say I have 2 nfs shares mounted to /folder1 and /folder2.
If I do a find / -name *something*
Will it also search the 2 nfs shares ?
If so is there a way to avoid this?
Thanks (2 Replies)
Discussion started by: whegra
2 Replies
6. Red Hat
Hi all
I am relatively new to linux (specifically red hat). I have installed Fedora 13 on my machine and started playing with the terminal when i found a very strange behavior when typing a command that is not found:
the terminal does not prompt me back. In other words, i am logged as root (or... (4 Replies)
Discussion started by: abohmeed
4 Replies
7. Shell Programming and Scripting
Hi Experts
I am facing a weird issue while using print statement in awk. I have a text file with 3 fields shown below:
# cat f1
234,abc,1000
235,efg,2000
236,jih,3000
#
When I print the third column alone, I dont face any issue as shown below:
# awk '{print $3 }' FS=, f1
1000
2000... (5 Replies)
Discussion started by: guruprasadpr
5 Replies
8. Shell Programming and Scripting
{ # print NF,NR,$0;
if ( ($(NF-1) != 0) && ($NF != 0) )
{if ($(NF-1) > $NF)
{percent=$(NF-1)/$NF-1;}
else
{percent=$NF/$(NF-1)-1;}
}
printf "%8.4f\%\n",percent*100;
if (percent > 0.05||percent < -0.05 ){exit 1;}
}'
Use code tags please, ty. Also try to use a more... (1 Reply)
Discussion started by: bosmat shani
1 Replies
9. Linux
Hi, I'm new to LINUX Scripting, I would like to know the full explaination of the below scripts.
thank you.
1st script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
`testrecord.scp`
`testEXGU.scp`
2nd Script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
cd... (1 Reply)
Discussion started by: AudreyEliza
1 Replies