Search Results

Search: Posts Made By: rbalaj16
1,524
Posted By rbalaj16
Hi RudiC, This works. Thanks a ton.
Hi RudiC,

This works. Thanks a ton.
1,524
Posted By rbalaj16
No it is not my code snippet, it is part of my...
No it is not my code snippet, it is part of my a.txt. i just copied it from the file.sorry for the confusion. ignore that if statement code.
1,524
Posted By rbalaj16
Let me explain in different way. i have two...
Let me explain in different way.

i have two files, a.txt, b.txt

more a.txt

root=/proj/app-d1/sun
data=/data/site-d1/conf

more b.txt

root=/proj/app-d2/sun
data=/data/index-i1/conf
...
1,524
Posted By rbalaj16
Find and replace the path value in files, pattern is not full known.
Hi,

I need to do find and replace, but the pattern is not full known.

for example,
my file has /proj/app-d1/sun or /data/site-d1/conf
here app-d1 and site-d1 is not constant. It may be...
2,194
Posted By rbalaj16
RudiC, I get error with that sed command....
RudiC,

I get error with that sed command. once we fix this command, i need to put it in a for loop for processing list of all my input files and see if i do not get my original issue here too.
...
2,194
Posted By rbalaj16
RudiC, Thanks for your response. I...
RudiC,

Thanks for your response.

I digged into this issue, the input files are coming from accurev SCM tool to my unix location. somehow it is removing the last line when it processes all the...
2,194
Posted By rbalaj16
sed command within script wrongly deleting the last line
Hi,

I have a shell script which has a for loop that scans list of files and do find and replace few variables using sed command. While doing this, it deletes the last line of all input file which...
Forum: Solaris 04-11-2013
5,432
Posted By rbalaj16
How to set a global alias in UNIX Solaris?
Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new...
2,564
Posted By rbalaj16
Need command for grepping pattern lines with subsequent lines
Hi,

I have a requirement like, I have a list of pattens in a file say pattern.txt,

PHC111
PHC113

and in another file called master.lst i have entries like,

PHC111
a
b
PHC112
a...
1,222
Posted By rbalaj16
Thanks all. it works fine.
Thanks all. it works fine.
1,222
Posted By rbalaj16
Formatting the file using pattern
Hi,

Please suggest the suitable command for my below requirement.

I have a file with greater than symbol (>) in many places in a file.
For example,

abcd>drfg>gdh

i want the output...
Forum: Solaris 02-13-2013
17,344
Posted By rbalaj16
Thanks all.
Thanks all.
Forum: Solaris 02-12-2013
17,344
Posted By rbalaj16
To get process id for port number
Hi All,

How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent

Thanks.
35,602
Posted By rbalaj16
thanks. it worked fine...
thanks. it worked fine...
35,602
Posted By rbalaj16
Thanks guys for reply. Now i also need to...
Thanks guys for reply.

Now i also need to grep a string which has special characters. when i use normal grep it is not working. Please suggest.

say my file looks like,
...
35,602
Posted By rbalaj16
grep lines having special characters
Hi,

I have a file which has numerous lines and some of the lines having special characters in it. i want to grep the lines which are having special characters.

say,

one line looks like ...
3,918
Posted By rbalaj16
nawk is doing it correctly. Thanks Ranga. ...
nawk is doing it correctly. Thanks Ranga.

command from Kamaraj also working except it is bringing ']' also in my output file.

Thanks to both.
3,918
Posted By rbalaj16
Ranga, Thanks for quick response. I am...
Ranga,
Thanks for quick response.
I am getting below syntax error. please check this error and suggest me.

awk: syntax error near line 1
awk: bailing out near line 1
3,918
Posted By rbalaj16
Grep the word from pattern line and update in subsequent lines till next pattern line reached
Hi,

I have got the below requirement. please suggest.

I have a file like,

Processing Item is: [08765]
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is: [0975398]...
1,319
Posted By rbalaj16
Thanks a lot. It is working fine. Timely help.
Thanks a lot. It is working fine.
Timely help.
1,319
Posted By rbalaj16
Merging two files with merging line by line
Hi,

I have two files and i want to merge it like,

file1.txt
---------
abc
cde
efg

file2.txt
-------
111
222
333

Output file should be,
--------------
abc
111
2,814
Posted By rbalaj16
Many Thanks to all. It is workine fine. :)
Many Thanks to all. It is workine fine. :)
2,814
Posted By rbalaj16
[Solved] making each word of a line to a separate line
Hi,

I have a line which has n number of words with separated by space.

I wanted to make each word as a separate line.

for example,

i have a file that has line like

i am a good boy...
1,539
Posted By rbalaj16
ssh autologin only.. generated the key...
ssh autologin only..

generated the key using "ssh-keygen -t rsa"
1,539
Posted By rbalaj16
ssh autologin issue when both machines are having same ~home directory
Hi,

I have two machines. M1 and M2 and having a generic id catadm, these two machines having common mount of /u/catadm directory.

with this setup, ssh autologin is failing for me and asking...
Showing results 1 to 25 of 34

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