Search Results

Search: Posts Made By: anbu23
17,108
Posted By anbu23
cd /temp/temp1 for i in *.csv do awk 'BEGIN...
cd /temp/temp1
for i in *.csv
do
awk 'BEGIN {
FS = ","
OFS = "\t"
}

{
$1 = $1
for (i = 1; i <= NF; i++) {
if ($i == "") {
$i = "null"
}
}
print $0
}' $i > ${i%".csv"}".txt"
done
Showing results 1 to 1 of 1

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