Search Results

Search: Posts Made By: naveed
2,818
Posted By naveed
Thanks a lot for your help
Thanks a lot for your help
2,818
Posted By naveed
Copy last 30 minutes' contents from a log file
Hi Guys,

I am writing a bash script to capture the last 30 minutes's contents from log file to a new file. This job is a scheduled job and will run every 30 minutes. The log file is db2diag.log in...
1,356
Posted By naveed
Thanks a lot RudiC, your logic works. It has save...
Thanks a lot RudiC, your logic works. It has save a hell lot of time for me. Have a nice day.

Naveed
1,356
Posted By naveed
Renaming the file names in a directory
Hi, I have about 60 files in a directory and need to rename those files. For example the file names are

i_can_phone_yymmdd.txt (where yymmdd is the date. i.e 170420 etc)
i_usa_phone_1_yymmdd.txt...
1,740
Posted By naveed
Thanks a lot rdxtr1. It works like a charm. ...
Thanks a lot rdxtr1. It works like a charm.

Naveed
1,740
Posted By naveed
Help - Parsing data in XML in Linux
Hi,

I have an XML file in Linux and it contains a long string of characters. The last part of the file is like
.......
.......
..........
2,553
Posted By naveed
how to replace characters using tr
Hi,

I have a file which includes some French Characters and I want to change them to other characters like

À to À
 to Â
É to É
.....
.....
and so on.

I am...
1,796
Posted By naveed
Thanks a lot for the rely. But I wanted to use...
Thanks a lot for the rely. But I wanted to use only one statement to rename the files using command line manually. I have found the command in other post.

rename _110117.txt .nav *_110117.txt
...
1,796
Posted By naveed
How to rename files
Hi Guys,

I have to rename about 180 files in different folders in linux. For example,

abc_110117.txt
eff_110117.txt
zzz_110117.txt

After renaming the files, these files should like like...
1,844
Posted By naveed
Thanks a lot. It really works. Naveed
Thanks a lot. It really works.

Naveed
1,844
Posted By naveed
Replace value with sed
Hi,

I am trying to replace a value in the file using sed. The input file looks like

input file format: <FileName>DWM_00000000.xml</FileName>

I have to replace 00000000 with today's date...
3,813
Posted By naveed
Thanks a lot jlliagre. It works great. ...
Thanks a lot jlliagre. It works great.

Naveed
3,813
Posted By naveed
Replace & sign to &amp word
Hi, I have text file abc.txt. In this file, I have the following data.

Input:
Mr Smith &amp Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
...
3,002
Posted By naveed
The desired output will be like ...
The desired output will be like
ADD|123|123|444|555|
ADD|N000|Smith, John BNSA-D'Fico,T#13|3|2010|
MODIFY|N000|D'Smith, John D'AMICO BNSA-D'FILO,T#1|3|2010|
DELETE|N000|SNELL, KENNETH L...
3,002
Posted By naveed
Removing Carriage return and merging data
Hi, I am trying to remove the carriage return on the record which starts with ADD, MODIFY, or DELETE keyword as the first value in the record. If the records does not start with anyone of these...
5,017
Posted By naveed
Thanks for your time and effort to get the things...
Thanks for your time and effort to get the things straight
5,017
Posted By naveed
Thanks a lot. I works. If you do not mind can you...
Thanks a lot. I works. If you do not mind can you please explain the code.
5,017
Posted By naveed
Parsing record into multiple records in Shell Script
Hi, I am trying to parse a very long record in a text file into multiple records by checking ADD, DELETE, or MODIFY field value in a shell script.

Input
# File name xyz.txt...
Showing results 1 to 18 of 18

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