Search Results

Search: Posts Made By: sophiadun
Forum: Open Source 02-20-2008
340,419
Posted By sophiadun
Crimson Editor is my favorite:b: Similar to...
Crimson Editor is my favorite:b:

Similar to UltraEdit but free
6,085
Posted By sophiadun
Here is my code awk...
Here is my code
awk '/^Begin/{close(f);f="C:/"$2".txt"} f{print>f}' input

I am using MKS Toolkit (KornShell) for Windows XP
6,085
Posted By sophiadun
My book says the basic syntax for awk is ...
My book says the basic syntax for awk is


I were thinking about this for two days:
What's about the function of the red part (I knew print>f is to print the result to the output file)
6,085
Posted By sophiadun
Thank, it's weird that this one didn't work in my...
Thank, it's weird that this one didn't work in my KornShell. I tried to look for the output txt files and found nothing in my specified directory.
6,085
Posted By sophiadun
:b: Thanks, I am very interested in this awk...
:b:
Thanks, I am very interested in this awk one. May I ask where the $f.txt stored ? same directory as the input file?
6,085
Posted By sophiadun
No, I dont want them named Object-aaaaa.txt. It...
No, I dont want them named Object-aaaaa.txt. It should be named as aaaaa.txt


Thanks
6,085
Posted By sophiadun
Oh, what if the input file like: Begin aaaaa ...
Oh, what if the input file like:
Begin aaaaa
txt1
end
;
Begin bbbbbb
txt2
end
;
Begin cccc
txt3
end
;
Begin ddd
txt4
end
;
6,085
Posted By sophiadun
Thank you very much, Lakris.:) I will try it out
Thank you very much, Lakris.:) I will try it out
1,409
Posted By sophiadun
a SED question
Hi, all

I want to print a paragraph if it contains AAA (blank lines separate paragraphs)
So I tired the following one :
sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;' InputFile

It gives out all the...
6,085
Posted By sophiadun
parse through one text file and output many
Hi, everyone

The input file pattern is like below:

Begin Object1

txt1

end
;


Begin Object2

txt2

end
;

...
Showing results 1 to 10 of 10

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