Search Results

Search: Posts Made By: susau_79
1,415
Posted By susau_79
Encrypt Unix Logic
Hi All, i have written small tool with the help of Unix & Oracle. Now I want to keep the logic with me for sometime, however at the same time want to distribute the tool to large audience. Can anyone...
2,472
Posted By susau_79
Delete Lines between the pattern
Hi All,
Below is my requirement. Whatever coming in between ' ', needs to delete.

Input File Contents:
==============
This is nice 'boy'
This 'is
bad
boy.' Got it

Expected Output...
4,387
Posted By susau_79
Delete first row last column
Hi All,
I am having following file and I want to delete 1 row last column.

Current File Content:
================
procedure test421 put_line
procedure test321 test421
procedure test521...
3,342
Posted By susau_79
Delete comments
Pls find the input.

create or replace procedure test421
is
begin
sass/*asasas
---sasasas/*dsdsds;
sasas*/
dbms_output.put_line('SAURABH');--trtertre;...
3,342
Posted By susau_79
Below code is not working. output is following. ...
Below code is not working. output is following.

create or replace procedure test421
is
begin
dbms_output.put_line('SAURABH');--trtertre;
END;


However expected out put is.
create or...
3,342
Posted By susau_79
Thanks for reply again. It's working fine,...
Thanks for reply again. It's working fine, however for below scenario, it's not.

Current:
==============
create or replace procedure test421
is
begin
/*
---sasasas/*dsdsds
*/
Testing is...
3,342
Posted By susau_79
Not working with below scenario. create or...
Not working with below scenario.

create or replace procedure test421
is
begin
/*
---sasasas/*dsdsds
*/
/*sasasas*/
dbms_output.put_line('SAURABH');
END;
3,677
Posted By susau_79
Still I am getting same error. The final...
Still I am getting same error.

The final command is...

fold -s -w 300 test.txt | awk -v RS='[[:space:]()\n]' -v Text='insert into xyz' '
BEGIN {
Words_count = split(tolower(Text),...
3,342
Posted By susau_79
delete comments
Delete everything comes in between /* & */.

Current File:
====================
create or replace procedure test421
is
begin
/*
---sasasas/*dsdsds
*/
dbms_output.put_line('SAURABH');
END;...
3,677
Posted By susau_79
Well, thanks for bearing with me aigles. Latest...
Well, thanks for bearing with me aigles. Latest command is also not working ad I am getting "awk: Input line procedure test1 insert cannot be longer than 3,000 bytes.". errors. Anyway in future, if...
3,677
Posted By susau_79
Tried with this, however getting below error....
Tried with this, however getting below error. Attaching file test.txt for you refer your reference.

awk: The result procedure load_file of the gsub function
cannot be longer than 3,000...
1,530
Posted By susau_79
I m getting memory coredump error as actual files...
I m getting memory coredump error as actual files having more than 15000 lines. Looks like gawk may work, so can you pls modify gawk command.
3,677
Posted By susau_79
Thanks for your reply. Can you modify gawk...
Thanks for your reply. Can you modify gawk command as well.



---------- Post updated at 09:07 AM ---------- Previous update was at 08:00 AM ----------

I am getting " Memory fault(coredump)"...
1,530
Posted By susau_79
Word Search
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input. Pls note that need to ignore words in between /* */
Search for: "insert into xyz" (Which...
3,677
Posted By susau_79
Thanks for wonderful response. This is working...
Thanks for wonderful response. This is working fine for me, however I forget to mention one this, i.e. it could be "procedure" or "function". I need to consider both, however above code only taking...
3,677
Posted By susau_79
Thanks for reply Cherry, however I do't want to...
Thanks for reply Cherry, however I do't want to execute via perl. I m looking for Unix command.
3,677
Posted By susau_79
Search 3 words
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input. Pls note that need to ignore words in between /* */
Search for: "insert into xyz" (Which...
5,829
Posted By susau_79
Not working
Hi Franlin, Thanks again for response, however looks like you have placed hardcoded test, this name is not fixed. I can be anything, so I am looking for any word which is coming right after keyword...
5,829
Posted By susau_79
Hi Franklin, thanks for reply, however this is...
Hi Franklin, thanks for reply, however this is not working for procedure test2. test2 is missing, the only issue because test2 available in new line. Can you pls reframe this as I am not that good in...
5,829
Posted By susau_79
Search word in a line and print earlier pattern match
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input.

Search for: word1.word2 (Which procedure contain this word, I need procedure name in...
Showing results 1 to 20 of 20

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