02-07-2008
cat <your file> | cut -d ' ' -f 1
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
5 Replies
2. UNIX for Dummies Questions & Answers
Hello People,
I have the following contents in an XML file
...........
...........
..........
...........
<Details = "Sample Details">
<Name>Bob</Name>
<Age>34</Age>
<Address>CA</Address>
<ContactNumber>1234</ContactNumber>
</Details>
...........
.............
.............. (4 Replies)
Discussion started by: sushant172
4 Replies
3. UNIX for Dummies Questions & Answers
I am working on a scraping project and I am stuck at this tiny grep pattern match.
Sample text :
FPA List. FPA List. FPA List. FPA List. FPA List. FPA List. FPA List. FPA List.
ABC Personal Planning
Catherine K. Wat
Cath Wat
Catherine K. Wat
Catherine K. Wat
IFRAME:... (8 Replies)
Discussion started by: kkiran
8 Replies
4. Shell Programming and Scripting
Hi All,
what i want to do in perl is i should give the date at run time .Suppose date given is 23/12/2011(mm/dd/yyyy) the perl script shold find week start date, week end date, previous week start date,end date,next week start date, end date. In this case
week start date will be-:12/19/2011... (2 Replies)
Discussion started by: parthmittal2007
2 Replies
5. Shell Programming and Scripting
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
6. UNIX for Dummies Questions & Answers
Hi, I have a file1 of many long sequences, each preceded by a unique header line. file2 is 3-columns list: headers name, start position, end position. I'd like to extract the sequence region of file1 specified in file2.
Based on a post elsewhere, I found the code:
awk... (2 Replies)
Discussion started by: pathunkathunk
2 Replies
7. Shell Programming and Scripting
Hello fellow awkers and seders:
need to figure out a way to ensure a software deployment has completed by checking its trace file in which I can store the deployment results as follows:
echo $testvar
===== Summary - Deploy Result - Start ===== ===== Summary - Deploy Result - End =====... (1 Reply)
Discussion started by: ux4me
1 Replies
8. Shell Programming and Scripting
Cat file1
--------
----------
SCHEMA.TABLE1
insert-------
update-----
-------------
----------
SCHEMA.TABLE2
insert-------
update-----
-----------
------------
SCHEMA.TABLE3
insert-------
update-----
------------
grep -n SCHEMA > header_file2.txt (2 Replies)
Discussion started by: Veera_V
2 Replies
9. Shell Programming and Scripting
Hi,
I have a log file (log.txt) that which contains lines of date/time.
I need to create a script to extract a CSV file (out.csv) that gets all the sequential times (with only 1 minute difference) together by stating the start time and end time of this period.
Sample log file (log.txt)
... (7 Replies)
Discussion started by: Mr.Zizo
7 Replies
10. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT SUNOS
intltool-extract
intltool-extract(1) User Commands intltool-extract(1)
NAME
intltool-extract - generate header file from XML source file
SYNOPSIS
intltool-extract [--ini-style] [--help] [--verbose] [--version] [--xml-style] [--scheme-style] source-file
DESCRIPTION
intltool-extract generates header files from the strings in the specified input files which gettext can use to merge strings into the .pot
file.
OPTIONS
The following options are supported:
--help Show usage and basic help information. You can also use -H to specify this option.
--ini-style Specifies that the source file is of type gettext/ini.
--scheme-style Specifies that the source file is of type gettext/scheme. You can also use -O to specify this option.
--verbose Provide additional feedback. You can also use -X to specify this option.
--version Show version information. You can also use -V to specify this option.
--xml-style Specifies that the source file is of type gettext/xml. You can also use -O to specify this option.
OPERANDS
The following operands are supported:
source-file Specifies the pathname of the XML file from which to extract translatable content.
EXAMPLES
Example 1: Generating a Header File for a Schemas File, With Verbose Output
example% intltool-extract -O --scheme-style foo.schemas.in
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-extracThe 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-merge(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-extract(1)