Search Results

Search: Posts Made By: rany1
3,604
Posted By rany1
ok, thx Singh
ok, thx Singh
3,604
Posted By rany1
Replace with a variable in sed command
Hello,

I have this command and it works fine.
My question is that how can we replace the N by a variable, to print for instance a big number of lines. It means if I want 100 lines after an...
5,554
Posted By rany1
Hello, I tried this command and it worked...
Hello,

I tried this command and it worked fine.
My question is that how can we replace the N by a variable, to print for instance a big number of lines. It means if I want 100 lines after an...
1,894
Posted By rany1
Perfect ... Thx a lot.
Perfect ...
Thx a lot.
1,894
Posted By rany1
Thx a lot for your replies. I tried this...
Thx a lot for your replies.

I tried this solution but it displays always the expression line number as a first line, what can I do to not print this first line in output ?


$ nawk...
1,894
Posted By rany1
Printing several lines of a file after a specific expression
Hello,

I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print...
1,436
Posted By rany1
Thx a lot to both. Regs,
Thx a lot to both.

Regs,
1,436
Posted By rany1
Inserting 2 columns from a file to another with nawk
Hello all,

I have these 2 files

File1
123 100
456 200
789 300

File2
|1|2|3||4|5||6|
|1|2|3||4|5||6|
|1|2|3||4|5||6|

I need an output like :

|1|2|3|123|4|5|100|6|...
3,096
Posted By rany1
Hi, Thx to all. I have to put fields names...
Hi,

Thx to all. I have to put fields names in the select to get it work as suggested by Tyler, before I was putting select * ...

thx & Regs,
3,096
Posted By rany1
Hi, For Guru, yes, I'm using sqlplus but I...
Hi,

For Guru,
yes, I'm using sqlplus but I don't have this variable "header" ...

For vbe,
I put pages to 0 so that's why filelds name were not displayed. But the problem is that if I don't...
3,096
Posted By rany1
How to display fields and values in sql+ for Oracle DB
Hello,

I'm trying to do a select for an Oracle table but the output gives me only filelds values without fields name as in Informix.
Is there anyway to display both in output ?
For instance,...
3,962
Posted By rany1
ok, thx a lot scottn ...
ok, thx a lot scottn ...
3,962
Posted By rany1
Thx all for your responses, but ygemici, I tried...
Thx all for your responses, but ygemici, I tried yours and it returns an error for me ...

$ sed '/\[Sdp\]/{;n;n; s/port=2233/port=6677/;p;d;q}' inputfile
sed: command garbled: /\[Sdp\]/{;n;n;...
3,962
Posted By rany1
Thx a lot ...
Thx a lot ...
3,962
Posted By rany1
ok, thank you ...
ok, thank you ...
3,962
Posted By rany1
Thx a lot for this very quick response ... ...
Thx a lot for this very quick response ...

Just one thing please, how can we do this by saying to sed for instance, I want to change only the third occurence in the file ?

Thx in advance ...
3,962
Posted By rany1
Change specific occurence with sed
Hello,

I have this file.

[Batch]
aaa
port=1234
time
[Sdp]
bbb
port=2233
name
[Ivr]
ccc
port=4444
name


Is there any way with sed to change only the occurence of "port" which...
2,580
Posted By rany1
Hi Radu, I executed your perl shell but got...
Hi Radu,

I executed your perl shell but got the following errors. Do you have an idea why ??

$ cat temp.sh
perl -MTime::Local -le'
/(....)(..)(..)(..)(..)(..)/g and
push @dt, timelocal $6,...
2,580
Posted By rany1
Hi, The format is : YYYYMMDDHHMMSS ...
Hi,

The format is : YYYYMMDDHHMMSS

Unfortunately, I don't have stat command on my system.

Is there any solution else ...

Regs,
2,580
Posted By rany1
About date & time difference
Hello All,

I was having a look on threads on the Forum about time calculation but didn't find exactly this issue.

For instance, if we have these 2 dates, begin & end :


20100430235830...
2,122
Posted By rany1
Ok, thx a lot for all ...
Ok, thx a lot for all ...
2,122
Posted By rany1
Create ranges on a file with awk
Hello all,

Let's say we have this file :


$ cat inputfile
2
3
4
7
8
11
15
16
17


I'm trying to make a script with awk which gives as output the following :
2,403
Posted By rany1
Hello, Or even in the file is not sorted,...
Hello,

Or even in the file is not sorted, this could help :


cat <file> | awk '{ if ($1 > "<date>") print }'


Regs,
17,992
Posted By rany1
thx a lot, it's working ...
thx a lot, it's working ...
17,992
Posted By rany1
Reading from standard input with awk
Hello,

Could somebody please give me an awk example on how to read from the standard input.
It means as the "read" function in Korn shell.

Thx in advance ...
Showing results 1 to 25 of 28

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