Search Results

Search: Posts Made By: Suresh
3,854
Posted By RudiC
The result you present is not quite reproducible....
The result you present is not quite reproducible. -OFS="," causes an error, but when corrected like -vOFS="," , it should yield the desired output without space. You could even simplify your code...
3,854
Posted By Scott
What is wrong with the result ("didn't get the...
What is wrong with the result ("didn't get the result as expected)?

$ sed "s/$/,$(date '+%Y%m%d')/" file
22055,20180930
21088,20180930
93840,20180930
30990,20180930
50990,20180930...
Showing results 1 to 2 of 2

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