Search Results

Search: Posts Made By: lancesunny
1,403
Posted By lancesunny
I am processing input files which consist of 94...
I am processing input files which consist of 94 characters per line.
Your representation of input file data is correct. Every file consists of 94 characters per line.File name = ...
1,416
Posted By lancesunny
Renumber position 88-94 inside all files matching criteria inside folder
There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data
Here is the Code which find the files matching criteria:-
TS=`date +"%m-%d-%Y"`| for...
1,403
Posted By lancesunny
Here is expected output:- For each file with...
Here is expected output:-
For each file with following file name pattern we need to look at position 1 inside first file matching our search criteria if first letter of the line is 5 then position...
1,403
Posted By lancesunny
Just now I've updated four files which are there...
Just now I've updated four files which are there is that folder. I need to update these files with above criteria.
Thanks,
-Lance
1,403
Posted By lancesunny
Editing all files inside folders and updating pos 88-94 with continuous numbering.
Here is expected output:-
For each file with following file name pattern we need to look at position 1 inside first file matching our search criteria if first letter of the line is 5 then position...
898
Posted By lancesunny
Selective position file editing inside folder
I need to process 4 files having name pattern as followis:-
1) Each file starts with = ABCJmdmfbsjop letters + 7 Digit Number _mm-dd-yyyy-hh-mm-ss-3 Digit Number.data
where ABCJmdmfbsjop :- is...
1,797
Posted By lancesunny
Thanks bipinajith. You solution worked and listed...
Thanks bipinajith. You solution worked and listed required files.
Now How i can copy these 4 files name listed by find . -name "ABCJmdmfbsjop???????_${TS}*.data" coammnd into 4 variables like Var1,...
1,797
Posted By lancesunny
Hi Bipinath, Thanks for your help on this. ...
Hi Bipinath,
Thanks for your help on this.
But the provided solution is not working. Here we are trying to find 4 different file names which are inside one folder and store them into 4 different...
1,797
Posted By lancesunny
Finding 4 different file name inside one folder meeting specific File Name pattern
Hi All,
I am trying to find 4 latest files inside one folder having following File Name pattern and store them into 4 different variables and then use for processing in my shell script. File name is...
2,883
Posted By lancesunny
Thanks Scrutinizer It worked. ----------...
Thanks Scrutinizer It worked.

---------- Post updated at 11:14 AM ---------- Previous update was at 10:38 AM ----------

Yes I saw this.
DD nevers keeps length 95 per line for some lines.
...
2,883
Posted By lancesunny
Thanks vbe, scottaazz & Scrutinizer. All your...
Thanks vbe, scottaazz & Scrutinizer. All your solution worked.
Can you guys please tell me what I need to do in order to add new line after only last line in the file?

Here are the command which...
2,883
Posted By lancesunny
vbe Thanks for you help regarding this. I ma...
vbe Thanks for you help regarding this.
I ma sorry but when I execute this command I get either file not found or 0+0 records in & o bytes copied.

dd if=<File1.dat> of=<File1Final.dat> cbs=95...
2,883
Posted By lancesunny
Formatting File having big single line into 95 Char Per Line
Hi All,

I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of...
8,621
Posted By lancesunny
Thanks bartus11. Your code worked Fine.
Thanks bartus11.
Your code worked Fine.
8,621
Posted By lancesunny
Thanks bartus11. But your solution is not...
Thanks bartus11.
But your solution is not inserting Blank Line after end of each file and combining last line of current file with first line from next file.
8,621
Posted By lancesunny
Combine Multiple Files into Single One File One after other
I am trying to combine 4 .dat files into one single Output file
Inputs are:- file123.dat, file256.dat, file378.dat & file490

Expected Output:-

FileName=file1
{text from file1}
EOF
{blank...
1,123
Posted By lancesunny
Thanks rdrtx1. I will test your solution...
Thanks rdrtx1.
I will test your solution tomorrow and let you know.
Thanks for your time and help regarding this.

---------- Post updated 10-03-12 at 10:21 AM ---------- Previous update was...
1,913
Posted By lancesunny
Thanks elixir_sinari. Your code worked fine. ...
Thanks elixir_sinari.
Your code worked fine.
Thanks a lot for your help & time on this.:)
1,913
Posted By lancesunny
Guys I've updated the code tags with specs for...
Guys I've updated the code tags with specs for more detailed info.
Thanks for you help. Sorry for the typo and confusion.
1,913
Posted By lancesunny
Check Character matching from pos 7-15 to pos 211-219 if True then replace 211-219 with spaces
Script for if characters from positions 7-15 are matching with characters from position 211-219 then replace all char from 211-219 with 9 space.
Total length of record is 420. Here is the...
1,123
Posted By lancesunny
if characters from positions 7-15 are matching 211-219 then replace
Script for if characters from positions 7-15 are matching with characters from position 211-219 then replace all char from 211-219 with 9 space.
Total length of record is 420. Here is the...
1,907
Posted By lancesunny
Thanks MSABHI You provided solution worked fine....
Thanks MSABHI You provided solution worked fine. UDAMAN.
Sorry for the typo on which i corrected now.
Input processing
1) 1st Record positions 351-357 = 0-12345
2) 3rd Record positions 351-357 =...
1,907
Posted By lancesunny
Thanks a lot MSABHI, Your solution worked fine...
Thanks a lot MSABHI,
Your solution worked fine and fixed the formatting issue.
Again thanks a lot for you help & time on this man.:)
-Lancesunny
1,907
Posted By lancesunny
Hi scottaazz, thanks for you help on this. ...
Hi scottaazz,
thanks for you help on this.
But this solution is not working. You solution does replaces record 1 & 3 correctly but changes overall formatting & position of the record no. 1 & 3. i.e...
1,907
Posted By lancesunny
Remove dashes if exist between positions 351-357 and then add - at the 357th position
I need to remove dash (i.e. -) if present from positions 351-357, and then add - (dash) at 357th position. For example in following first and 3rd record we got
Before processing
1) 1st Record...
Showing results 1 to 25 of 35

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