Search Results

Search: Posts Made By: arup1980
1,942
Posted By arup1980
Thanks All .. Its working for me now with...
Thanks All ..

Its working for me now with concept that "backtick" need an extra escape character.
1,942
Posted By arup1980
a.ksh have only those 3 lines .. i have given my...
a.ksh have only those 3 lines .. i have given my main post.

to run

$ ./a.ksh
sed: newline or end of file found in pattern

$
1,942
Posted By arup1980
Hi RudiC, Thanks for reply .. All these...
Hi RudiC,

Thanks for reply ..
All these working if I run directly in korn shell by typping.

But through a file say a.ksh ..didn't work for me
1,942
Posted By arup1980
Flip slash in korn shell
Hi

I am unable to flip the slash in korn shell.

Working fine if I run directly in ksh but not throgh .ksh file.

below is sample.

Want result as A/B/C




Ab=A\B\C
B=`echo "$Ab" |...
51,685
Posted By arup1980
Reading file line by line in cshell
I want to read a file in cshell line by line. But it is reading the values by spaces....

For Ex, my file1 :word1 word2 word3
word5 word6


By below script, variable taking the values...
1,272
Posted By arup1980
Execute a shell script in UNIX m/c from win 7 using ksh
I need to run a shell script on unix machine from windows 7.
I used the "RSH" command in win XP successfully for this, But on win 7 it is not working.

Can any body tell me how to run RSH on win 7...
10,972
Posted By arup1980
Thanks all for your reply.. I got my result...
Thanks all for your reply..

I got my result by below #!/bin/sh

a=1
until [ $a -gt 10 ]
do
echo "$a \c"
a=`expr $a + 1`
done

Now I want to replace 10 by n. and for n value 5 I want the...
10,972
Posted By arup1980
Thanks Ravinder, I dont want to use awk. ...
Thanks Ravinder,

I dont want to use awk.

but 2nd one helps me..
10,972
Posted By arup1980
Hi, I have tried #!/bin/sh a=1 ...
Hi,

I have tried
#!/bin/sh

a=1
until [ $a -gt 10 ]
do
echo $a
a=`expr $a + 1`
done

But here output come as column. I want this in a single line as row with space.
10,972
Posted By arup1980
Hi Ravinder, I am using unix shell, Bash shell....
Hi Ravinder,
I am using unix shell, Bash shell.
you scripts are working in ksh n csh.

here say "seq command not found" also {1...10} doesn't work.

thanks for your help
10,972
Posted By arup1980
Sorry Ravinder.. It doesn't work
Sorry Ravinder.. It doesn't work
10,972
Posted By arup1980
Print 1 to 10 with space in shell script
Hi,

I want to print 1 to 10 or upto any number sequentially with space in a single line. Like,

1 2 3 4 5 6 7 ......

In shell script only.. Can anyone plz help me.

Thanks:
1,695
Posted By arup1980
Thanks MadeInGermany. It works.. ...
Thanks MadeInGermany.
It works..

---------- Post updated at 05:20 PM ---------- Previous update was at 05:13 PM ----------

Hi,
Now I have long list of files. few of those having these match....
1,695
Posted By arup1980
Hi MadeInGermany, I need another help. If...
Hi MadeInGermany,
I need another help.

If I want to add the line after "Realized" then what to do.

Thanks
1,695
Posted By arup1980
Thanks MadeInGermany, It works fine for me. ...
Thanks MadeInGermany,

It works fine for me.

thanks a lot.
1,695
Posted By arup1980
Hi "MadeInGermany", Thanks for your reply. But...
Hi "MadeInGermany",
Thanks for your reply. But can you please explain a bit. I am very new in this.

Thanks again..

---------- Post updated at 01:08 PM ---------- Previous update was at 01:03...
1,695
Posted By arup1980
Add newline before another line of occurance
Hi ,

I have a file like

I want to add a new line before "Realized" only when it comes after "Sheep".
There may be any line betwwen "Sheep" and "Realized" other than this two.
Say my new line...
16,929
Posted By arup1980
Hi , Thanks all for your reply .. I have...
Hi ,
Thanks all for your reply ..

I have the similar query but for my case I want add another line before that matched line (ie, Realized what you gotta do).

thanks in advance
1,250
Posted By arup1980
Run few perl script in CMD using script
Hi,

I have few PERL script which I have to run in CMD.

I want to create a new script which will take care of running all these scripts in CMD.:confused:

can any one suggest which script...
2,812
Posted By arup1980
How to know machine details in windows through cmd
Hi,

I want to print machine details in windows.
In UNIX it is easily available by the command
uname -X

Is there any command like this in windows to get those details..

can anybody help...
1,876
Posted By arup1980
delete a file using perl
Hi,

How to delete a file (if exists) using perl script.
I have used following script..
if ( -e $newfile) {
open (FILE, ">$newfile") || die "Cannot Open File\n";
print FILE;
close(FILE);...
1,991
Posted By arup1980
Thanks again...:):):) its very useful ....
Thanks again...:):):)

its very useful ....
1,991
Posted By arup1980
Hi rangarsan, many many thanks to you.. It...
Hi rangarsan,

many many thanks to you.. It works fine and solved my problem.:)

But can you please explain the regex portion.:confused:
It will help me a lot.

Thanks again
1,991
Posted By arup1980
hi itkamaraj, thanks for your reply. but...
hi itkamaraj,

thanks for your reply.
but it is an example .. actually the last word is not alaway as fourth word.

say another string is..
qq_ww_sdf
another ... ss_dd_ff_gg_hh_hjk
...
1,991
Posted By arup1980
how to replace a particular character in perl
Hi,

I have a file with two string :
aa_bb_cc_def
gg_hh_jj_xyz

now i want a command in perl script, which gives me the result as :
aa_bb_cc.def
gg_hh_jj.xyz

Can anyone help me on this...
Showing results 1 to 25 of 35

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