Search Results

Search: Posts Made By: ananthap
7,138
Posted By ananthap
In awk, NR tells you the overall record number...
In awk, NR tells you the overall record number and FNR tells you the record number of the current file. Also the variable FILENAME gives you the name of the current file.

In the BEGIN pattern,...
Forum: Linux 06-01-2012
3,553
Posted By ananthap
Practice and graded self study. Install a...
Practice and graded self study.

Install a linux at home or among friends and

learn basic commands. I used to have a starter list - ls, mv, cp, cd, mkdir, vi, who, ps, sed, grep, concept of...
1,119
Posted By ananthap
Successively applying [ -f <FileName> ] option...
Successively applying [ -f <FileName> ]
option of the test command will test whether the files in question exist or not.

In your case
fileold must not exist,
filenew should not exist and so...
Forum: War Stories 05-18-2012
21,532
Posted By ananthap
With AIX-LPAR and all, your's must be a very big...
With AIX-LPAR and all, your's must be a very big and so procedure oriented organisation. So you really have two approaches. One described earlier. ie. Do but dont tell anyone, take care etc.

The...
2,948
Posted By ananthap
Next try taking the closing ripple bracket to...
Next try taking the closing ripple bracket to another line thus:
BEGIN {
requestID=100;
ORS="";
}
{
requestID=requestID+1;
print "<?xml version=\"1.0\"...
2,742
Posted By ananthap
Subject seemed clear enough. BAT to SH. It...
Subject seemed clear enough. BAT to SH.

It looks like
for i in $A
do
java PDFGenerator $i
done

The delim= probably sets the delimiter for the command line.
In a batch file, the % gets...
2,061
Posted By ananthap
Hi sagar, Did you understand the actual...
Hi sagar,

Did you understand the actual problem with your original script that is pointed out by rbatte1?

OK
2,727
Posted By ananthap
Actually I posted the code so that you could try...
Actually I posted the code so that you could try it out yourself.

What did you try? Post some test data and we will see.

OK
2,727
Posted By ananthap
For { lines=FNR; arr[lines]=$3; sum+=$3}...
For { lines=FNR; arr[lines]=$3; sum+=$3} substitute
{
for x=1 to nf {
lines++ ;
arr[lines]=$x; sum+=$x ;
}


} ie. Instead of forcing to use the third field, loop through the...
Forum: What is on Your Mind? 04-20-2012
10,979
Posted By ananthap
Hi syed. Do you remember the flooding about...
Hi syed.

Do you remember the flooding about 8 years back?

The basement of many IT compnaies were flooded.

OK

We have been "bangalored".

Despite the traffic, people got time to vote.!?!
13,140
Posted By ananthap
In every DOS system, the file extensions alone...
In every DOS system, the file extensions alone identify the file type. These are internally associated with the appropriate programme to open the file.

In your webmail (assuming its a client),...
12,637
Posted By ananthap
See date(1): print/set system date/time - Linux...
See
date(1): print/set system date/time - Linux man page (http://linux.die.net/man/1/date)

%G%V will give the year and week number

OK
12,637
Posted By ananthap
I refer you to the ISO definition of a week. ...
I refer you to the ISO definition of a week.
ISO week date - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/ISO_week_date)

OK.
Forum: War Stories 04-13-2012
10,765
Posted By ananthap
You said it. Thats the real reason isn't it?
You said it. Thats the real reason isn't it?
6,076
Posted By ananthap
Homework question? Please answer. What...
Homework question?

Please answer.

What did you really try?

OK
3,631
Posted By ananthap
In awk, (pseudo code) If $2 = dir1 then print...
In awk, (pseudo code)
If $2 = dir1 then print $1,\t,$3 without a new line.
Else print \t,$3.
If $2=dir4 then print \n

OK
25,207
Posted By ananthap
Why dont you try it out? Add an if condition...
Why dont you try it out? Add an if condition first to check that the directory name doesn't exist.

OK
10,211
Posted By ananthap
in awk, { if NR % 2 == 0 print $1-ODD ...
in awk,
{
if NR % 2 == 0
print $1-ODD
else
ODD=$1
}

Please try.

OK

Please use code tags. Video tutorial on how to use them...
27,112
Posted By ananthap
AFAIR, oracle doesn't return the job completion...
AFAIR, oracle doesn't return the job completion status to the command line such that you can query $? after the expdp command.

So you have to refer to a line in the output file $LOG_FILE in your...
6,491
Posted By ananthap
something like ls -l | grep sed...
something like
ls -l | grep sed 's/<Homedirectorry>//g'

ie. replace all homedirectory references with null.
5,882
Posted By ananthap
Whats ABSG got to do with this thread?
Whats ABSG got to do with this thread?
2,230
Posted By ananthap
See this thread for the full discussion. ...
See this thread for the full discussion.

[SOLVED] Date Calculations using script!! (http://www.linuxquestions.org/questions/linux-newbie-8/date-calculations-using-script-904706/)
7,756
Posted By ananthap
Actually if you used only the command line progs...
Actually if you used only the command line progs `useradd`, `usermod` or `userdel`, via a shell script and using the return values, then that would be all you need.
useradd(8) - Linux man page...
1,003
Posted By ananthap
As far as I know, Oracle doesn't permit sending...
As far as I know, Oracle doesn't permit sending errors to another scripts directly.

Otherwise you would simply do:
sqlplus xxx/yyy << ! >> result.out 2>>error.out
dffdsf
fsfsd
!

or the...
1,003
Posted By ananthap
In other words, you should be able to trap the...
In other words, you should be able to trap the error alone (ie not regular messages also) and display them in the perl output when the sub-task throws an error?
Showing results 1 to 25 of 44

 
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy