01-03-2011
Just read and follow the suggestions you received ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys....
Got a scenario in which I need to skip parsing the header record while I do an awk.
Does awk has the flexibility to accomplish this?.
If so, how do we do this?.
Thanks !!!
-Anduzzi :) (2 Replies)
Discussion started by: anduzzi
2 Replies
2. Shell Programming and Scripting
Hello,
I'm trying to make a shell script to skip comments from an XML file, but with the code below only deletes comments that are in one line.
Can you tell me what can be added here?
nawk '
{
if($0 !~/<!--/) { a=0 }
if($0 ~/<!--/ && $0 ~/-->/) {a=1}
if($0 ~/<!--/) {a=1}
if... (1 Reply)
Discussion started by: majormark
1 Replies
3. Shell Programming and Scripting
Im trying to ssh to a remote machine to grep 'x info' *.log and Im able to get the grep output as expected but "after" the policies (1st 14 lines) - I need to skip the first 14 lines.
Its SunOS.
Plz help??? (1 Reply)
Discussion started by: anthonyraj75
1 Replies
4. Shell Programming and Scripting
Im trying to ssh to a remote machine to grep 'x info' *.log and Im able to get the grep output as expected but "after" the policies (1st 14 lines) - I need to skip the first 14 lines.
Its SunOS.
Plz help??? (7 Replies)
Discussion started by: anthonyraj75
7 Replies
5. Shell Programming and Scripting
HI All,
I am trying to split a xml using awk. now the issue is i want to skip three lines from the xml file. first two and last one based on pattern. plz some one help. i am new to awk and struggling :wall:
<?xml version="1.0"?>
<notification>
.....
.....
.....
.....
........ (24 Replies)
Discussion started by: ganesan kulasek
24 Replies
6. Shell Programming and Scripting
Hello All,
I have a large file, more than 50,000 lines, and I want to split it in even 5000 records. Which I can do using
sed '1d;$d;' <filename> | awk 'NR%5000==1{x="F"++i;}{print > x}'Now I need to add one more condition that is not to break the file at 5000th record if the 5000th record... (20 Replies)
Discussion started by: ibmtech
20 Replies
7. UNIX for Dummies Questions & Answers
I need to amend the code blow such that it reads a "black list" before the "print" statement; if "substr($1,1,6)" is found in the "blacklist" it will ignore that record and continue. the code is from an awk script that is being called from shell script which passes the input values.
BEGIN { "date... (5 Replies)
Discussion started by: bazel
5 Replies
8. Shell Programming and Scripting
Hello,
I am new to AWK and in UNIX in general. I am hoping you can help me out here.
Here is my data:
root@ubuntu:~# cat circuits.list
WORD1
AA
BB
CC
DD
Active
ISP1
ISP NAME1
XX-XXXXXX1
WORD1
AA
BB
CC (9 Replies)
Discussion started by: tattoostreet
9 Replies
9. Shell Programming and Scripting
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. Shell Programming and Scripting
The awk below does put in VUS in the 9th field but I can not seem to skip the header then add the VUS. I tried to incorporate NR >=2 and NR > 1 with no luck. Thank you :).
input
Chr Start End Ref Alt Func.refGene PopFreqMax CLINSIG Classification
chr1 43395635 ... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
writetype
WRITETYPE(1) General Commands Manual WRITETYPE(1)
NAME
WriteType - application designed to help students write more easily
SYNOPSIS
writetype [OPTION] ... FILE
DESCRIPTION
WriteType is a simple word processor designed to help young students write more easily and accurately. It offers spelling suggestions as
students type, making the process easier and less frustrating. It also provides the ability to read back text through either an eSpeak or a
Festival backend. In addition, there are special tools for teachers, and the entire application is easily translatable.1
WriteType is Free Software / Open Source, and is released under the GNU GPL license.
OPTIONS
-l, --lang
Set the language for this session
-t, --tts-engine
Set the tts engine for this session. Changes in the settings during this session will override this.
-?, --help
Display this help and exit
FEATURES
Word Completion - As students type, word suggestions appear on the right-hand side of the screen to complete the word being typed. Click-
ing on the desired word will finish the word. WriteType will also learn a student's habits over time and make more relevant suggestions
based on what has already been written.
Reading Back the Document - WriteType will read back written text, allowing students to catch errors they may not have caught reading it
back themselves.
Highlighting - Sections of the document can be quickly highlighted while typing or while listening to the document being read back. This
lets students quickly flag areas they need to go back and review.
Grammar checking - WriteType will underline simple grammar and formatting mistakes in the document, and offer to make the necessary revi-
sion.
Auto-correction - Common errors, such as typing isnt instead of isn't, will be corrected automatically without the need for intervention.
Distraction-free mode If the typist has difficulty maintaining concentration while typing, distraction-free mode is an alternative inter-
face that displays full screen and only includes the text box and the list of completions.
Add a list of custom words In some situations, the default list of words is not sufficient, so the system allows the user to add new ones.
Even if the words already exist in the list of words, adding them will bring them to the top of the list of suggestions.
AUTHOR
WriteType was made by Max Shinn <max@bernsteinforpresident.com>
SEE ALSO
You can find more information at http://writetype.bernsteinforpresident.com/
BUGS
Probably.
1.2.130 WRITETYPE(1)