Search Results

Search: Posts Made By: grajp002
14,809
Posted By grajp002
calling a perl script with arguments from a parent perl script
I am trying to run a perl script which needs input arguments from a parent perl script, but doesn't seem to work. Appreciate your help in this regard.


From parent.pl
$input1=123;
$input2=abc;...
1,416
Posted By grajp002
Extract Number
I am trying to extract the numbers from the strings.


Lakers win 80% of the games
24 numbered Kobe scores 90% from free throw line
Chances of Lakers winning championship is 100%


I have...
2,027
Posted By grajp002
Thanks
Thanks
2,027
Posted By grajp002
Variable substitution
Hi,
I have to write a shell script in which I have to substitute a variable within a variable. For example,

var1=aaa
var2=file.$var1.txt

The output should be,
echo $var2
file.aaa.txt

Can...
1,444
Posted By grajp002
format a string
Hello All,
I have a file which appears as follows


a,alpha,abc-xyz,123
b,beta,prq-jkl,543
c,gamma,xyz-mno,957


I have to extract the entire content, except for the data following "-" in...
2,389
Posted By grajp002
Thank you. It works. I was just...
Thank you.

It works.

I was just playing around with awk and was wondering how could I remove the second field too if I had too. I tried this, but in vain.



$ awk '{ $1="",$2=""}1' File1...
Forum: AIX 03-30-2010
40,683
Posted By grajp002
I am no expert, but try this $ sudo su -...
I am no expert, but try this

$ sudo su - appusr /bin/app.sh
2,389
Posted By grajp002
diff bw two files
Hi All,
I have two files which look as below


File1
serial="1" name="abc" type="employee" field="IT"
serial="2" name="cde" type="intern" field="Marketing"
serial="3" name="pqr"...
10,997
Posted By grajp002
Removing trailing zeros using sed
Hello All,
I have a csv file with 3 columns. The file which looks like this


47850000,100,233
23560000,10000,456
78650000,560000,54
34000000,3456,3


The first column has 4 trailing zeros....
3,848
Posted By grajp002
Thank you all for your prompt response. What...
Thank you all for your prompt response.

What should I do, If my data is as follows.


[id=4][name=alpha][state=ny][city=abc]
[employee=234]
[id=2][name=beta][state=wv][city=pqr]...
3,848
Posted By grajp002
extract strings from file and display in csv format
Hello All,
I have a file whose data looks something like this


[id=4][name=alpha][state=ny][city=abc]
[id=2][name=beta][state=wv][city=pqr]
[id=3][name=theta][state=ca][city=xyz]...
17,183
Posted By grajp002
I cant try it now. Will let you know tomorrow...
I cant try it now.
Will let you know tomorrow if it works.

Thanks
20,989
Posted By grajp002
count the number of lines that start with the number
I have a file with contents similar to this.


abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298


I want to write a shell script which count the number of lines that start with...
17,183
Posted By grajp002
Shell Script to extract string from file
Hello,
I have a file whose contents look as follows


<ID="24" name="Kobe Bryant" Position="Shooting Guard">
<name="Artest" Position="Forward" ID="37">
I need to get the output which contains...
Forum: Solaris 12-14-2009
4,443
Posted By grajp002
Thank you Incredible but as I mentioned earlier,...
Thank you Incredible but as I mentioned earlier, I have already gone over that link.

I want to set quotas on a Zone and I don't see and entry for /export/home in /etc/vfstab.
Forum: Solaris 12-14-2009
4,443
Posted By grajp002
Quotas on /export/home
Hello all,
I am trying to set quotas on /export/home filesystem for some of our users on a Solaris Zone I know that you would be redirecting me to some of the documentation pages, but I have already...
Forum: Solaris 12-09-2009
7,126
Posted By grajp002
Actually the script runs every 4 hours, I just...
Actually the script runs every 4 hours, I just displayed it as 4 to avoid the hassle. And I cannot display the script as it doesn't belong to me and it belongs to a business critical application. I...
Forum: Solaris 12-09-2009
7,126
Posted By grajp002
There is no error in /var/cron/log. It says the...
There is no error in /var/cron/log. It says the script executed on time.
Forum: Solaris 12-09-2009
7,126
Posted By grajp002
Its on Solaris itself. The location is...
Its on Solaris itself.

The location is writeable.

I tried running the script and redirecting the output, it works but cannot do it with cron for some reason.


# ./somescript.sh >...
Forum: Solaris 12-09-2009
7,126
Posted By grajp002
Cron redirect problem
Hello all,
I have a script that I am trying to execute and redirect the output to a file, but I have trouble in redirection. The cron job is running properly as I see it in the mail.

This is what...
Forum: Solaris 12-04-2009
18,131
Posted By grajp002
@jlliagre
Then how do we schedule to run the job every 3 hours everyday?

Please let me know!
Forum: Solaris 12-04-2009
18,131
Posted By grajp002
How to sequence cron jobs?
Hello all,
I have 3 scripts that I have to run using cron tab and 2 scripts are dependent on the first script.

How do I schedule cron jobs such that 2nd job follows first and 3rd follows 2nd.
...
20,057
Posted By grajp002
Thank you both of you!!!! :):):):)
Thank you both of you!!!!
:):):):)
20,057
Posted By grajp002
Lets say, I have 3 files in a directory #ls ...
Lets say, I have 3 files in a directory

#ls
alpha
beta
file with spaces

Now I want to list them in the following manner
<LI><A href="alpha">alpha</A>
<LI><A href="beta">beta</A>
<LI><A...
20,057
Posted By grajp002
I need something like this Filename 1 is...
I need something like this

Filename 1 is alpha
Filename 2 is beta
Filename 3 is gamma
Filename 4 is some file with spaces.txt
Showing results 1 to 25 of 35

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