Search Results

Search: Posts Made By: tamahomekarasu
1,604
Posted By tamahomekarasu
awk printf dillemma
Please help me format this file:

Source file looks like this, there are three columns, separated by space. First column has varrying width:
1 248105240 W25_2013
10 248103710 W06_2013
100...
2,317
Posted By tamahomekarasu
awk: creating a fixed-width single file from 2 different files
I have to create a single file from three files, Please see below for samples:

day.txt
20090101
20090102

item.txt
123456789101
12345678910209
1234567891

str.txt
1
12
123
...
4,330
Posted By tamahomekarasu
Thanks!!! worked like magic
Thanks!!! worked like magic
4,330
Posted By tamahomekarasu
Appending string (charachters inside the line) to a fixed width file using awk or sed
Source File:

abcdefghijklmnop01qrstuvwxyz
abcdefghijklmnop02qrstuvwxyz
abcdefghijklmnop03qrstuvwxyz
abcdefghijklmnop04qrstuvwxyz
abcdefghijklmnop05qrstuvwxyz


Whatever characters are in...
3,331
Posted By tamahomekarasu
thanks Jim but when I use paste the spaces...
thanks Jim but when I use paste the spaces doesn't seem rigth with the "new line character" showing as a big white space in between the merged lines.
3,331
Posted By tamahomekarasu
Concatenating lines of separate files using awk or sed
For example:

File 1:
abc def ghi
jkl mno pqr

File 2:
stu vwx yza
bcd efg hij
klm nop qrs

I want the reult to be:
abc def ghistu vwx yza
jkl mno pqrbcd efg hij
klm nop qrs
15,263
Posted By tamahomekarasu
Thanks Shahul! Sorry for the repeated reply... i...
Thanks Shahul! Sorry for the repeated reply... i dont have an available environment as of he moment to test it. I really appreciate your help on this.
15,263
Posted By tamahomekarasu
So if the replacement pattern is 20 characters...
So if the replacement pattern is 20 characters long, it would only overwrite 200-220 charcter?
15,263
Posted By tamahomekarasu
Thanks that's helpful, just wondering if i need...
Thanks that's helpful, just wondering if i need to replace only the 200th-220th character of each line, what would the command look like?
15,263
Posted By tamahomekarasu
Thank you for that but what if the 4th column are...
Thank you for that but what if the 4th column are strings with spaces in between? Is there a way to dictate awk to start looking at a certain point like looking at every 200th character of each line?
15,263
Posted By tamahomekarasu
Thanks for the reply but I dont know the specific...
Thanks for the reply but I dont know the specific command that will work in this scenario. Would you know how to do that?
15,263
Posted By tamahomekarasu
edit entire column from a fixed-width file using awk or sed
Col1 Col2 Col3 Col4

12 Completed 08 0830
12 In Progress 09 0829
11 For F U 07 0828

Considering the file above, how...
Showing results 1 to 12 of 12

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