Search Results

Search: Posts Made By: lijju.mathew
1,681
Posted By lijju.mathew
help with onliner
Hi

I want to insert a line after a line by searching for the last occurence for that. I have taken an already posted example.
Say in the following file

a.txt
------
adadfadafadf
adfadadf...
5,670
Posted By lijju.mathew
In the above example i would like to add another...
In the above example i would like to add another line after the red line(last occurence of line starting with cool).How can i do that with a perl onliner

Thanks in advance

Lijju
4,707
Posted By lijju.mathew
Line deletion help using perl -ne
Hi all,

I know the one liner to delete all the lines in a file which matches a pattern
i.e

perl -i.old -ne 'print unless /pattern/' file

Now i need the perl onliner to delete all the lines...
18,977
Posted By lijju.mathew
executing a SQL query in shell script
Hi ALL,

I need an help in connecting to oracle database, executing a select query and printing it on the screen. Can any one please write a simple code or psuedo code and let me know.

select...
7,818
Posted By lijju.mathew
sed command help
Hi All,

I have a script which has the following lines

----------------------------------------
filename =detail.txt
text='hai'
var1=`cat $filename|grep text|sed 1q`
echo var1...
13,871
Posted By lijju.mathew
Calling PL/SQL Script in Shell Programming
Hi all,

In a shell script I need to pass two parameters to a pl/sql script and get the ouput of the pl/sql script and use it in shell script.

For example

Shell script : test.sh

PL/SQL...
22,837
Posted By lijju.mathew
gzip with timestamp
Hi all,

I have a file(Say x) and need to zip using gzip with the date&Timestamp(Something like x01012007.......) . Can you please tell me the command.

Thanks
10,526
Posted By lijju.mathew
Yes it is not replacing. It doing some other thing
Yes it is not replacing. It doing some other thing
10,526
Posted By lijju.mathew
Sed Help !
Hi,

I have a command in one of my shell script as below.

sed -n "/^$a/,\$p" $home/abc.log

$a and $home are variables. Not sure about $p.

Can you please let me know what this command is...
8,321
Posted By lijju.mathew
.profile usage
I have two questions regarding .profile file

1) What is the use of .profile file

2) I have a login with my username and password. Where would my .profile file reside. Can i edit it.

Thanks...
Showing results 1 to 10 of 10

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