Search Results

Search: Posts Made By: spc432
5,508
Posted By spc432
Hi thanhdat, Its working fine. But I copied...
Hi thanhdat,

Its working fine. But I copied file from windows to UNIX. After copy, I observerd that "\377\376" added at the first line automatically. If i remove this, grep is working fine. ...
5,508
Posted By spc432
grep is not working for few extensions
HI all,
I am trying to grep few words in with file extension of srw. But grep is not giving any output. File has all the permisssions to read,write,execute.

If i try to search manually...
5,706
Posted By spc432
My OS is solaris9 version. I used nawk,...
My OS is solaris9 version. I used nawk, /usr/xpg4/bin/awk

but error coming


#!/bin/ksh
nawk '/^public function/,/END public function/{
/^public function/ && fn = $0
if [$0 ~ sc]
then...
5,706
Posted By spc432
hi radoulov, Ur code is giving syntax...
hi radoulov,

Ur code is giving syntax errors ...i couldnt rectify....

awk '/^public function/, /END public function/ {
/^public function/ && fn = $0
if ($0 ~ sc) print fn
}'...
5,706
Posted By spc432
sorry ..i didn't try that. I think u posted above...
sorry ..i didn't try that. I think u posted above code before i updated.
Let u know after i try that.....
5,706
Posted By spc432
How to find function name based on word search
Just I want to display names of all the functions which are called "call Global Function1()".

so based on above file ( file1.txt) output should be


public function calculate1()
public...
5,706
Posted By spc432
How to find function name based on word search
Hi All,

I want to find out function name based on word.
Here i ll give u one example

I have several files based on below format. file will start and ends with same name only

EX: ...
1,946
Posted By spc432
posting thread is problem
hi,
i am unable to post new thread. pls revert back what i need to do. i already posted 3 threads....
I am getting message like " Message is too short" even though my message is more than 100...
3,012
Posted By spc432
Hi sapfeer, Excellent explanation...Thank...
Hi sapfeer,

Excellent explanation...Thank you very much....
3,012
Posted By spc432
Hi Sapfeer, I tried ur code in my...
Hi Sapfeer,

I tried ur code in my machine. Its working fine . But i couldnt understand how it works. Im very new to shell scripting.. even i tried with tutorials.....
Please explain me...
3,012
Posted By spc432
how to remove words between /* and */ in several lines of file
hi,
I want to remove comments in somany files. coments started from /* and ends with */. so i wnt to remove words /* to */
how to remove words between /* and */ in several lines of file

EX :...
1,723
Posted By spc432
hi vidyadhar, thanks for quick reply. But...
hi vidyadhar,

thanks for quick reply. But it is not working....i feel my description is not clear...again i ll explain here...

EX : cat infile
ob1**,ob2,ob3,ob4**,ob5,ob6...
1,723
Posted By spc432
how can i delete words based on search
hi,

I have a doubt. how we can remove few words based on search.
here im specifying my requirement with example.

ALL the words should delete between two words ...
those words will ends **...
4,238
Posted By spc432
hi Zaxxon, ur script is working only when i...
hi Zaxxon,

ur script is working only when i give like below format
CASE 1:
sed -e :a -e '/&$/ {
> N
> s/&\n//
> }
> ta' infile
But if i give

CASE 2:
" sed -e :a -e '/&$/...
4,238
Posted By spc432
sorry Zaxxon....I am not much familiar with shell...
sorry Zaxxon....I am not much familiar with shell scripting. Just learning now. I dont know exact use of "sed" command. I just copied ur code and tried here . :-)
But error coming "sed: command...
4,238
Posted By spc432
HI ramesh SRK, Thank you. "cat <Filename> |...
HI ramesh SRK,

Thank you. "cat <Filename> | xargs -E '&' | sed 's/& //g'" this is working. But still some problem... But some problem.
here i ll expalin with example

line 1 : abcdefgh&
line 2...
4,238
Posted By spc432
how to combine 2 lines in same files based on any text
hi,

I want to combine two lines in same file. If the line ends with '&' it should belongs to previous line only
Here i am writing example.

Ex1:
line 1 : return abcdefgh&
line 2 :...
Showing results 1 to 17 of 17

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