From 6785e6933b306291a80aa34b07c307305ff5f05c Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Fri, 22 Nov 2024 19:34:52 +0400 Subject: [PATCH] updated aws_info_ec2_all_profiles_csv.sh --- aws/aws_info_ec2_all_profiles_csv.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aws/aws_info_ec2_all_profiles_csv.sh b/aws/aws_info_ec2_all_profiles_csv.sh index 96942f41230..1b46bd128d9 100755 --- a/aws/aws_info_ec2_all_profiles_csv.sh +++ b/aws/aws_info_ec2_all_profiles_csv.sh @@ -76,8 +76,7 @@ aws_foreach_profile.sh " s|^|\"{profile}\",|; 1s|^\"{profile}\"|\"AWS_Profile\"|; ' | - tee | - tail -n +2 >> '$csv_sorted' + tee 2>> <(tail -n +2 >> '$csv_sorted') " | tee "$csv"