10-27-2011
that's sed replace command, "&" used to add chars after each line.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a ksh which peocess and get me data from 3 days...
ie if i process it on jan 28.. it gets data for 25, 26 and 27.... the process run every day and get previous 3 days data...all this data is appened to a file lets call time.out
Now time.out cannot have deplicate data so what i want... (10 Replies)
Discussion started by: bhagya2340
10 Replies
2. Shell Programming and Scripting
Hi,
i am new to awk. I am using csv2pipe script(shown below)
BEGIN { FS=SUBSEP; OFS="|" }
{
result = setcsv($0, ",")
print
}
# setcsv(str, sep) - parse CSV (MS specification) input
# str, the string to be parsed. (Most likely $0.)
# sep, the separator between the values.
#
#... (6 Replies)
Discussion started by: bhaskarjha178
6 Replies
3. Shell Programming and Scripting
All,
I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then
Insert file1 column2 to file2 column4 then create a new file.
File1:
12345 Sam
12346 Bob
12347 Bill
File2:... (1 Reply)
Discussion started by: darkoth
1 Replies
4. Shell Programming and Scripting
Hi All,
I am hoping someone can help me with some scripting I need to complete using AWK.
I'm trying to process multiple fixed files to generate one concatenated fixed file in a standard format.
The Input file is:-
aaaa bbbbb ccccc 1 xxxx aaa bbb
aaaa bbbbb ccccc 2 abcd aaa CCC... (9 Replies)
Discussion started by: jason_v_brown
9 Replies
5. Shell Programming and Scripting
Hi,
i have 2 input files which are file1.txt and file2.txt. I need to extract data from file1.txt and file2.txt and save it in file3.txt like example below:-
File1.txt
ID scrap1
Name scrap1
start 1
end 10
ID scrap2
Name scrap2
start 11
end ... (4 Replies)
Discussion started by: redse171
4 Replies
6. Shell Programming and Scripting
Hi All,
I have two input file and need to generate a CSV file. The existing report just "GREP" the records with the Header and Tailer records with the count of records.
Now i need to split the data into 25 records each in the same CSV file.
id_file (Input file )
227050994
232510151... (4 Replies)
Discussion started by: rasmith
4 Replies
7. Shell Programming and Scripting
This is part of my code:
for in_file in $1/*.in # list of all .in files in working directory.
do
$c_file < $in_file > "$tempFile.out"
if diff "$tempFile.out" $out_file >/dev/null 2>&1 ;
then
... (6 Replies)
Discussion started by: spider-man
6 Replies
8. UNIX for Dummies Questions & Answers
Dear experts,
I am new to linux programming. I have a shell script which i should run it on all my samples.
I only define input and out put for this script. The inputs are 3 numbers(coordination numbers) which are available in a series of text file.
Since i have a lots of samples, it takes a... (5 Replies)
Discussion started by: mohamadreza
5 Replies
9. Shell Programming and Scripting
The below awk improved bu @MadeInGermany, works great as long as the input file has data in it in the below format:
input
chrX 25031028 25031925 chrX:25031028-25031925 ARX 631 18
chrX 25031028 25031925 chrX:25031028-25031925 ARX 632 14... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. Shell Programming and Scripting
i have written my shell script in notepad however i am struggling to pass the data file to be read to the script the data file is of .txt format. My target is to run the shell script from the terminal and pass 3 arguments e.g. polg@DESKTOP-BVPDC5C:~/CS1420/coursework$ bash valsplit.sh input.txt... (11 Replies)
Discussion started by: Gurdza32
11 Replies
LEARN ABOUT DEBIAN
pofileconsistency
POFILECONSISTENCY(1) POFILECONSISTENCY(1)
NAME
POFileConsistency - checks consistency in a collection of PO files
SYNOPSIS
POFileConsistency [OPTION] [...] [FILE] [...]
INTRODUCTION
POFileConsistency checks consistency in a collection of PO files.
COMMAND LINE OPTIONS
--help or -h
show usage instructions
--interactive or -i
interactive mode, iterate though the inconsistencies using a text mode interface; see the Interactive Mode section
--equivalent=file or -e file
load a file with a list of equivalent msgstr for a given msgid; can be used multiple times
--only-empty or -o
only report inconsistencies with at least one of the translations empty
--match=string or -m string
only report inconsistencies if at least one of the files involved contain the given string
--strip-chars=chars or -r chars
remove each of the chars from both msgid and msgstr before checking inconsistencies
INTERACTIVE MODE
In interactive mode you iterate through each of the inconsistencies found. In each prompt you can press Enter to ignore this inconsistency,
a number of a possible translation (1, 2, ...) to change all the translations to that text, 0 to input a text to use in all the
translations, l to add the exception to each of the PO files, or, if you are using at least one equivalents file, a to add the exception to
the first of those files.
PO FILE HEADER DIRECTIVES
POFileConsistency recognizes several PO file header directives. As with all gettext lint tools, these directives are all prefixed with
X-POFile.
X-POFile-IgnoreConsistency: msgid
remove the given msgid from the list of messages to check
X-POFile-ConsistencyAlias: string1 string2
replace all ocorrences of string1 with string2 before checking consistency
CONSISTENCY EQUIVALENTS FILE FORMAT
This files consists of a series of empty line separated blocks. For example:
msgid 1
possible translation 1
possible translation 2
possible translation n
msgid 2
possible translation 1
possible translation 2
possible translation n
MORE INFORMATION
gettext-lint web page: http://gettext-lint.sourceforge.net/
AUTHOR
Pedro Morais.
<morais@kde.org>
08/16/2006 POFILECONSISTENCY(1)