Hi,
I have a sql file and i need to extract the table names used in the sql file using a unix script. If i can extract the lines between the keywords 'FROM' and 'WHERE' in the file, my job is done. can somebody tell me how to do this using a shell script. If u can just let me know, how to... (2 Replies)
Hi all,
I'm very very new to UNIX and AWK world.Please help me in finding a solution for my problem.
I'm having a file like this
-----------------------------------------------------------------
~Version Information
VERS. 2.0: CWLS log ASCII Standard -VERSION 2.0
WRAP. ... (4 Replies)
Hi,
HP-UX gxxxxxxxc B.11.23 U ia64 3717505098 unlimited-user license
I have a file with below pipe separated field values:
xxx|xxx|abcd|xxx|xxx|xx
xxx|xxx|abcd#123|xxx|xxx|xx
xxx|xxx|abcd#345|xxx|xxx|xx
xxx|xxx|pqrs|xxx|xxx|xx
xxx|xxx|pqrs#123|xxx|xxx|xx
The third field has values like... (6 Replies)
Thank you for assisting,
I've got a partial solution just needs a tweak.
Hulk-BASH$ cat somefile.txt
oh there is some stuff here
some more stuff here
START_LABEL
stuff I want
more stuff I want
END_LABEL
other stuff here too
and even more stuff here too
Hulk-BASH$
Hulk-BASH$ sed... (8 Replies)
Hi all,
I have a positional text file that comes from some source application. Before it is processed by destination application I have to add some header (suffix) to every record(line) in the file.
e.g.
Actual File
...............
AccountDetails
AcNO Name Amount
1234 John 26578
5678... (3 Replies)
Hello all
I am getting data like
col1 | col2 | col3
asdafa | asdfasfa | asf*&^sgê
345./ |sdfasd23425^%^&^ | sdfsa23
êsfsfd | sf(* | sdfsasf
My requirement is like
I have to to read the file and remove all special characters and hex characters ranging form 00-1f from 1st column, remove %"'... (1 Reply)
Hi Guys,
I need some script in removing lines containing strings like ",, ," and "rows". Retain only numbers as the output. See below for the input and output file.
INPUT FILE:
9817
9832
6285
6312
6313
6318
,, ,
6329
7078
7098
7130
7959
7983 (7 Replies)
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Have two files and want to compare the content of file1 with file2. When matched remove the line.
awk 'NR==FNR {b; next} !(b in $0)' file1 file2file1
1. if match
2. removefile2
1. this line has to be removed if match
2. this line has a match, remove
3. this line has no match, no removingThe... (3 Replies)
Within my text file i have several thousand lines of text with some lines containing duplicate strings/words. I would like to entirely remove those lines which contain the duplicate strings.
Eg;
One and a Two
Unix.com is the Best
This as a Line Line
Example duplicate sentence with the word... (22 Replies)
Discussion started by: martinsmith
22 Replies
LEARN ABOUT DEBIAN
pospell
pospell(1) User Manuals pospell(1)NAME
pospell - Run a program on the translation strings of a .po-file
SYNOPSIS
pospell [-l language ] [-fsv] -n pofile -p program [-- [ arguments... ]]
DESCRIPTION
pospell copies the translations from the pofile to a temporary file (called the spellfile) and then calls program with its arguments. pro-
gram is supposed to somehow change the spellfile. It is typically a spell checker. Afterwards the possibly changed translations in spell-
file is copied back into the pofile.
If pofile is specified as - then pospell will act as a filter, i.e. standard input and standard output will be used.
%f in the arguments will be expanded to the name of the spellfile, or - if the -f option is used. Use %% for a real % character.
All comment lines in the pofile are replaced with lines with "#" as the only character in the spellfile. The msgid strings with original
text in the pofile are replaced with lines with ">" and "]" as the only characters in the spellfile. The msgstr strings with file headers
(i.e. strings without corresponding msgid strings) are replaced with lines with ")" and "]" as the only characters in the spellfile. Don't
change or remove these lines from the spellfile - they are used when the spellfile and the pofile are merged together after running the
program.
The normal msgstr strings are copied to the spellfile with some changes: 1) The word msgstr and everything else before the string is
replaced by a "+" character. 2) Strings with C escape sequences followed by a letter like "one two" are split to parts like "one "
"two". 3) Leading whitespace in continuation lines is removed. The changes of kind 1) and 2) are undone when the spellfile is copied back
into the pofile, but removed whitespace will not be restored.
OPTIONS -f The called program is a filter so don't make a temporary file, but pipe the spellfile to its standard input and read it back from
its standard output.
-l language
Only translations with the indicated language code are copied to the spellfile.
-s Quit with an error message if unrecognized items are found in the pofile or spellfile.
-v Print the version and exit.
FILES
pospell uses one or two temporary files with names given by the mkstemp(3) or the tmpnam(3) function.
BUGS
If some system call gives an unexpected error pospell will stop immediately with an error message leaving its temporary files.
AUTHOR
Byrial Jensen <byrial@image.dk>
SEE ALSO
The GNU gettext utilities.
newsbody(1).
Unix APRIL 2000 pospell(1)