Search Results

Search: Posts Made By: ajayram
2,044
Posted By r0bby
Fully agree , rsync (maybe over ssh) is the...
Fully agree , rsync (maybe over ssh) is the solution.
2,427
Posted By CarloM
There were a couple of errors (or 4) in my...
There were a couple of errors (or 4) in my previous solution. :o

{
if ($1=="+1") {
printf "1"
} else {
printf "0"
}
prev=0;
for (i=2;i<=NF;i++) {
split...
6,867
Posted By ahamed101
Thanks frank. Ajay try this awk...
Thanks frank.
Ajay try this


awk '/^\.I/ {_2="file"$2".txt"} /^\.T|^\.N/{_1=$0;getline;print _1"\n"$0 >> _2 }' infile

regards,
Ahamed
Showing results 1 to 3 of 3

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