Search Results

Search: Posts Made By: Melah Gindi
1,313
Posted By Melah Gindi
Insert text string in file
7 import
8 One Time

So the desired results in the file:


"R","1","cd00331","","10/31/2013","10/31/2013","import","One Time","","1100.66"...
1,313
Posted By Melah Gindi
Need to insert a comment string
I need to insert a comment string to a couple of fields for every line in the file. Different comment string for each field.

In below file, fields 7 and 8



...
3,151
Posted By Melah Gindi
Add comment string to a column in a file
Great! This did the trick:
awk '$2="\"" NR "\""' FS=, OFS=, infile

Now I need to add a comment string to a couple of fields for every line in the file. Different comment string for each field.
...
3,151
Posted By Melah Gindi
Replace a field with line number in file
I am working on a script to convert bank data to a csv file. I have the format done - columns etc. The final piece of the puzzle is to change the second field (after the R) of every line to reflect...
Showing results 1 to 4 of 4

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