Search Results

Search: Posts Made By: req62861
1,243
Posted By req62861
Thanks
That got me very close. I had to tweak it a bit because of my file.
1,243
Posted By req62861
Reply
The grep ^',' is looking for a comma in the first position of the file I have. If that is true then I want to Print the record and add the DATE variable I have created.

It would look something...
1,243
Posted By req62861
UNIX help adding data to end of a line with a variable
I am trying to add a date variable to the end of each line. This is what I have to start with

cat ${DATAPATH}/Participate_Stream${STREAMDATE}.dryak1.csv | grep ^',' | awk '{print $0}' >>...
Showing results 1 to 3 of 3

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