Search Results

Search: Posts Made By: Abhisrajput
2,401
Posted By Abhisrajput
sed -n '1,/\<LAC\>/p' file This doesn't work...
sed -n '1,/\<LAC\>/p' file

This doesn't work for me.

Only the below code is working.

sed -n '1,/ LAC/p' file
2,401
Posted By Abhisrajput
And if the Input is like below: LACC FEGHRA 0 ...
And if the Input is like below:
LACC FEGHRA 0
LACC FACAF 0
LACC DARA 0
LACC TALAC 0
LACC ILACTC 0
LACC Kerzner 0
LAAS TOTAL 0
LACC LAC 0
LACC IRSI 0
LACC Asocianes CTO 0...
2,401
Posted By Abhisrajput
To print from the first line until pattern is matched
Hi I want to print the line until pattern is matched.

I am using below code:

sed -n '1,/pattern / p' file

It is working fine for me , but its not working for exact match.

sed -n...
1,298
Posted By Abhisrajput
I have tried that way but it is not working. ...
I have tried that way but it is not working.
perl extract.pl FILE 3 0, 1, 3..6, 21..33

It seems it taking the values as string. I need to convert it into integer. And having hard time to read it.
1,298
Posted By Abhisrajput
Passing multiple value in a single argument in Perl.
Hi all,

I have below code through which trying to pick data from specific columns strating from a certain row.

#!/usr/bin/perl
#This script is to pick the specific fields from a files...
2,828
Posted By Abhisrajput
Can you please help me with that. I am very new...
Can you please help me with that. I am very new into Perl.
2,828
Posted By Abhisrajput
#!/usr/bin/perl use strict; use warnings; ...
#!/usr/bin/perl
use strict;
use warnings;
open my $fh, '<', 'CF_Resourcing' or die "Can't open file: $!\n";
while (<$fh>) {
my @fields = split(/\t/);
print...
2,828
Posted By Abhisrajput
Reading specific range of columns in an Excel file
Hi All,

I want to read an excel file.

PFA excel, I want to read the cloumn from A to G and the V to AH
starting from Row number 3.

Please help me on this.
1,431
Posted By Abhisrajput
How to get new line after certain character.?
Hello,

I have a file like:-

My Name is ABCMy Name is XYZMy Name is PQR

I want the output like

My Name is ABC
My Name is XYZ
My Name is PQR

Please help. The length is fixed for each...
7,018
Posted By Abhisrajput
How to split multiple worksheets into multiple files?
Dear all,
My source contains excel file with multiple worksheets. As part of project requirement I need to split all the worksheets into multiple files in ETL.

For Example,
Source File (A.xls)...
4,336
Posted By Abhisrajput
Convert csv to excel
Hi All,

I have a csv file in unix and I need to convert it into excel formate.
Please help me out
1,763
Posted By Abhisrajput
Thanks for help..!! Now I am able to see...
Thanks for help..!!

Now I am able to see the records in proper line.
but the first line which contains the column name is not get seperated from the second line Rest all the lines look good. ...
1,763
Posted By Abhisrajput
I am able to see the records in new line but when...
I am able to see the records in new line but when open the file in note pad the records are in a sigle line
1,763
Posted By Abhisrajput
How to get new line in text file?
Hi ,
I have text file and i'm not getting new line after the end of records.
Please help me with unix command..
1,639
Posted By Abhisrajput
Script To read Date and count from files
Smaple 1

Date and Time: 2013-05-11 12:23:12 MST
abc,1234,hi-all,45354-88888,IN,US
XYZ,1234,hi-all,45354-88888,OUT,GB
abc,1234,hi-all,45354-88888,IN,AS
abc,1234,hi-all,45354-88888,OUT,US...
1,634
Posted By Abhisrajput
I have to read only the date from the first line....
I have to read only the date from the first line. => 2013-05-11

Please help me out
1,670
Posted By Abhisrajput
How to remove first line and last line.?
I need to remove the first line and the last line of a file.

Please help me as I am new to Shell scripting.
Thanks.
1,634
Posted By Abhisrajput
To read timestamp and count from a line
I have file like:
Date and Time: 2013-05-11 12:23:12 MST
abc,1234,hi-all,45354-88888,IN,US
XYZ,1234,hi-all,45354-88888,OUT,GB
abc,1234,hi-all,45354-88888,IN,AS
abc,1234,hi-all,45354-88888,OUT,US...
1,258
Posted By Abhisrajput
I got it :) cut -c 16-35 filename
I got it :)
cut -c 16-35 filename
1,258
Posted By Abhisrajput
To read timestamp from a line
I have a situation like, I have to read only the timestamp value from a line.
ex: Date and Time : 2013-05-11 12:12:34 MST

I cut the 'Date and Time' but unable to remove MST part.
I need a script...
2,310
Posted By Abhisrajput
I have a situation like, I have to read only the...
I have a situation like, I have to read only the timestamp value from a line.
ex: Date and Time : 2013-05-11 12:12:34 MST
Showing results 1 to 21 of 21

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