Search Results

Search: Posts Made By: ajincoep
13,364
Posted By ajincoep
Copying a line from one file to other using vi editor
Hi Guys,

the command ":yy" copies the line but it can be pasted in the same file. How can it be done if I want to copy it in other file.
18,361
Posted By ajincoep
_TYVM_
_TYVM_
18,361
Posted By ajincoep
How to replace words using VI editor on the fly
HI Guys,

How Can I replace particular words in a file starting from the line where my cursor is pointing while the file is opened in VI editor?

If you are using sed, please give me the code.
...
8,424
Posted By ajincoep
yes, when i removed slashes , it worked tx
yes, when i removed slashes , it worked
tx
8,424
Posted By ajincoep
Log file not getting generated
Hi ,

Log file is not getting generated. any suggestion? Thanks

date1=$(date '+%m/%d/%y-%H:%M:%S')
log="wrapper.log.$date1"
echo " somethng" > $log
1,377
Posted By ajincoep
Regex in Unix
user can enter Yes or yes or YES and its captured in variable say var

if [ $var == [Yy][Ee][Ss] ]
then
#do something
elif [ $var == [Nn] [Oo] ]
then
#do somethingI think you got what i...
10,038
Posted By ajincoep
Yes, in the command prompt the cleartool command...
Yes, in the command prompt the cleartool command works properly.

One more thing....
after the cleartool ... command gets executed, the command prompt returns to ksh shell from whichever shell you...
10,038
Posted By ajincoep
cleartool - script stops after using setview
Hi Guys,

See the below code. The command below the cleartool setview ITG_Automation is not executing.
Could you please suggest.

#!/bin/ksh
echo $0
cleartool setview ITG_Automation
echo $0
1,827
Posted By ajincoep
I do not want the error report to display on the...
I do not want the error report to display on the console. But it is still displaying....
1,827
Posted By ajincoep
Hiding error report
Hi Guys,

Error report is still displaying on the console after executing the below command. Is there any error in the syntax?

check_event=$(cat...
8,496
Posted By ajincoep
I figured out the problem, please see the code...
I figured out the problem, please see the code marked in bold.
Silly mistakes ;)

Nways, thanks for your help. :b:

#!/bin/ksh


#================================================
#Reading...
8,496
Posted By ajincoep
klaxxon, 1. I tried set -x, and I see that...
klaxxon,

1. I tried set -x, and I see that array is full of data while inside the function (see result below).
2. In the main function, First I call that function, and then i try to echo the...
8,496
Posted By ajincoep
Variable value not retaining outside function
Hi All,
As per my understanding, value of variable is retained outside function.
But the value of array myarrayDriver[$i] is not retained outside function. Could you please tell the reason for the...
9,145
Posted By ajincoep
What you all are saying will return line after...
What you all are saying will return line after ("=")

But the line should be returned after ("driver=").
Any thoughts???
28,830
Posted By ajincoep
Thanks for your reply, I replaced ('...') ...
Thanks for your reply,

I replaced ('...') with $( ) , it worked.

Could you please mind explaining the reason for this.
Thanks
28,830
Posted By ajincoep
Unknown error - ``' unmatched
Hi Guys,

I get the error while running below commands. Earlier the command used to execute, but after enclosing them in a function, the error is occuring

backupPath=`echo $folderName | sed -e...
9,145
Posted By ajincoep
Thanks Guys
Thanks Guys
9,145
Posted By ajincoep
Using awk to print line starting with particular word
Hi Geeks,

Consider this line:

driver=c:\folder1\folder2

The above line is contained in a variable say 'var' . I want to copy everything after 'driver=' in to another variable say var2.
...
4,024
Posted By ajincoep
HI Klashxx/rdcwayx, The perl thing worked,...
HI Klashxx/rdcwayx,

The perl thing worked, Could you please mind explaining the code.

Thanks in adv.
4,024
Posted By ajincoep
It is not working: Unrecognized command: _ ...
It is not working:
Unrecognized command: _

---------- Post updated at 08:41 AM ---------- Previous update was at 08:39 AM ----------

Could you please explain the awk command. Especially...
4,024
Posted By ajincoep
Using sed to delete a line having a particular keyword
Hi Geeks :b:,
I need to delete a line from file that contains a particular keyword.
I had read in some forum of unix.com that below code could be used

sed "/$titlesearch/d" movielist >tmp
mv...
1,796
Posted By ajincoep
Thank you for responding. Could you please...
Thank you for responding.

Could you please answer these questions
1. When do we enclose quotes (" ") within a variable?
2. When do we enclose quotes (` `) within a variable?
3. When do we...
1,796
Posted By ajincoep
Problem with syntax using awk
Hi Guys,
When below code is executed in script, I get desired output in output file.

awk 'NR >= $start_line && NR <= 3' master_scriptlist.txt > $driver1/scriptlist.txtBut when i replace 3 with a...
2,862
Posted By ajincoep
Using awk/sed in handling csv file.
Please study the below script and the output
Script:

echo "Minimum ${host} ${process} response time=${min} ms" >> ${OUTDIR}/${OUTFILE};
echo "Maximum ${host} ${process} response time=${max} ms"...
2,202
Posted By ajincoep
Why do a unix script starts with a comment?
For eg:

#!/usr/bin/ksh

<remaining code goes here>
..
..


Does the compiler ignores that?

Thanks
Showing results 1 to 25 of 32

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