Sponsored Content
Full Discussion: Merging File with headers
Top Forums Shell Programming and Scripting Merging File with headers Post 302745875 by newbie83 on Tuesday 18th of December 2012 09:09:45 AM
Old 12-18-2012
Code:
awk -v var=`wc -l < files ` 'NR>1 && /Header row/ {next}{print}' files

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help:how to remove headers in output file

Hi I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines. But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
Discussion started by: raj_thota
1 Replies

2. Shell Programming and Scripting

Remove Headers throughout a data file

I have a data file with over 500,000 records/lines that has the header throughout the file. SEQ_ID Name Start_Date Ins_date Add1 Add2 1 Harris 04/02/08 03/02/08 333 Main Suite 101 2 Smith 02/03/08 01/23/08 287 Jenkins SEQ_ID Name ... (3 Replies)
Discussion started by: psmall
3 Replies

3. Shell Programming and Scripting

Remove text between headers while leaving headers intact

Hi, I'm trying to strip all lines between two headers in a file: ### BEGIN ### Text to remove, contains all kinds of characters ... Antispyware-Downloadserver.com (Germany)=http://www.antispyware-downloadserver.c om/updates/ Antispyware-Downloadserver.com #2... (3 Replies)
Discussion started by: Trones
3 Replies

4. UNIX for Dummies Questions & Answers

reading file headers

Hello, I have done much googling on this, but apparently not using the right keywords. I am assuming there is some kind of header for each file on a disk which stores information such as mod time, access time, etc. I have two questions: 1) is there a way to read this header directly,... (2 Replies)
Discussion started by: Allasso
2 Replies

5. Shell Programming and Scripting

Merging of files with different headers to make combined headers file

Hi , I have a typical situation. I have 4 files and with different headers (number of headers is varible ). I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only). For example - File 1 H1|H2|H3|H4 11|12|13|14 21|22|23|23... (1 Reply)
Discussion started by: marut_ashu
1 Replies

6. Shell Programming and Scripting

Multiple headers in a file

Hi , I have a .txt file in which I have multiple headers, the header record starts with $ symbol...like the first column name is $Account. I have to keep the header in the first line and delete all the remaining headers which are in the file. I tried using sort adc.txt | uniq -u , but my... (7 Replies)
Discussion started by: gaur.deepti
7 Replies

7. Shell Programming and Scripting

Editing File Headers

Hey Guys, Absolute neewbie here. I am trying to see if it is possible to edit headers/meta-data of files in Mac OSX. I am basically trying to change an audio file header to read 16bit instead of 24bit. We have an issue with some of our software and it regularly exports 16bit audio files with... (3 Replies)
Discussion started by: andysuperaudiom
3 Replies

8. Shell Programming and Scripting

Modify record headers from file

Dear All I was wondering if anybody is able to help me with a script I am struggling with. I have to add comments to the "head-lines" (start with >) from an other file according to the ID tag. Only the head lines should be modified. cat File.txt >H1_A1_A2_A3_A4_ID1_A5 A:B:C:S:E:E:K... (4 Replies)
Discussion started by: loba
4 Replies

9. UNIX for Dummies Questions & Answers

Append file name to fasta file headers in Linux

How do we append the file name to fasta file headers in multiple fasta-files in Linux? (10 Replies)
Discussion started by: Mauve
10 Replies

10. UNIX for Advanced & Expert Users

Cannot find logical file format for BSD file headers.

Hi. Unix rookie here. Been looking for a few days for reference documents on how BSD UNIX lays the logical file format onto a disk. Goal is to view/edit with hex editor for data repair. Lots of docs are available for how to use Unix commands (like xxd), but I want to learn the map of how Unix... (4 Replies)
Discussion started by: Chris_top_he_r
4 Replies
intltool-merge(1)						   User Commands						 intltool-merge(1)

NAME
intltool-merge - merge translated strings into various file types, such as XML SYNOPSIS
intltool-merge [--desktop-style] [--help] [--keys-style] [--oaf-style] [--pass-through] [--quiet] [--utf8] [--version] [--xml-style] po- directory filename output-file DESCRIPTION
intltool-merge merges translated strings in .po files in po-directory with the original application file filename, to create the file out- put-file which contains both the original and the localized strings. Afterwards, the application XML file contains repeated xml-nodes, where each xml--node contains one of all translations and an xml:lang attribute. OPTIONS
The following options are supported: --desktop-style Include translations in the desktop style. You can also use -d to specify this option. --help Show usage and basic help information. You can also use -h to specify this option. --keys-style Include translations in the keys style. You can also use -k to specify this option. --oaf-style Include translations in the oaf style. You can also use -o to specify this option. --pass-through Use strings as found in .po files, without conversion (not recommended). You can also use -p to specify this option. --quiet Operate in quiet mode; do not provide feedback. You can also use -q to specify this option. --schemas-style Include translations in the schemas style. You can also use -s to specify this option. --utf8 Convert all strings to UTF-8 encoding before merging. You can also use -u to specify this option. --version Show version information. You can also use -v to specify this option. --xml-style Include translations in the standard XML style. You can also use -x to specify this option. OPERANDS
The following operands are supported: po-directory Specifies the location of the translated .po files. filename Specifies the name of the original application file. output-file Specifies the name of the file to be created by the intltool-merge command, to contain both the original and the localized strings. EXAMPLES
Example 1: Merging the Contents of the Translated .po Files in the po Directory With the Original File foo.desktop.in to Create foo.desktop example% intltool-merge ./po foo.desktop.in foo.desktop -d -u EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/intltool-merge The command-line executable for the application. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-common-devel | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
intltool-extract(1), intltool-prepare(1), intltool-unicodify(1), intltool-update(1), intltoolize(1) NOTES
For more information, see the I18N-HOWTO file, which is provided with the intltool source code. Updated by Damien Donlon, Sun Microsystems Inc., 2003. Written by Darin Adler, Kenneth Christiansen, Maciej Stachowiak. SunOS 5.10 3 Apr 2003 intltool-merge(1)
All times are GMT -4. The time now is 12:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy