Search Results

Search: Posts Made By: ranjeetmenon
4,227
Posted By ranjeetmenon
sed 's/ {1,}/ /g' 1.txt | tr -s " " "\n" | awk...
sed 's/ {1,}/ /g' 1.txt | tr -s " " "\n" | awk 'BEGIN {FS=","} { for (i=1;i<=NF;i++) sum[i]=sum[i] + $i } END { for (i=1;i<=NF;i++) printf("%d,", sum[i]) }'

you have to remove the filename from...
4,219
Posted By ranjeetmenon
pretty much similar to zaxxon's reply... ...
pretty much similar to zaxxon's reply...


usildb26:LT2:/home/ranjeetm > cat a
#!/bin/sh
echo "<ol>"
while read line
do
echo $line |sed 's/^/<li>/g'| sed 's/$/<li>/g'
done
echo "<ol>"...
84,024
Posted By ranjeetmenon
sort -r file | head -1 > newfile
sort -r file | head -1 > newfile
4,552
Posted By ranjeetmenon
If your contents are in file "a", and your new...
If your contents are in file "a", and your new file is "b":

tr "\n" " " <a > b
Showing results 1 to 4 of 4

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