Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Nov 2014, 18:57
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
po2pot using awk command running Puppy Precise? [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 10 Jan 2013, 14:06    Post subject:  po2pot using awk command running Puppy Precise? [SOLVED]  

Hello,
This command line worked fine running Puppy Racy 5.3 but don't anymore running Puppy Precise 5.4.3 Shocked
Code:
msgfilter --keep-header  -i input.po  -o empty.po  awk -e '{}'
This is what I get in console:
Quote:
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-O --optimize
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W use-lc-numeric --use-lc-numeric
-W version --version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd
msgfilter: Sous-processus awk terminé avec le code de sortie 1
What's wrong? The option -e of awk (GNU Awk 3.1.8 on Puppy Precise) seems not to be supported?

Thank you!

Cordialement.

_________________


Last edited by Argolance on Fri 11 Jan 2013, 05:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Thu 10 Jan 2013, 16:12    Post subject: Re: po2pot?
Subject description: How to get a pot file from a po file?
 

Argolance wrote:
...
Code:
msgfilter --keep-header  -i input.po  -o empty.po  awk -e '{}'
...

in his blog BarryK wrote:
This line does it (plus a bit of editing by me):

# msgfilter --keep-header -i ROX-Filer.po -o ROX-Filer.pot awk -e '{}'


I would generate the .pot file from the sources (that is how it is usually done Cool )
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 10 Jan 2013, 17:38    Post subject:  

Hello L18L,
Thank you for answering.
Quote:
This line does it (plus a bit of editing by me):

# msgfilter --keep-header -i ROX-Filer.po -o ROX-Filer.pot awk -e '{}'

This is indeed where I found it...
Quote:
I would generate the .pot file from the sources (that is how it is usually done)
This is "usually" right. Wink
But this code line can be useful though (I used it before and currently need it inside a script for my own) and I was wondering why it works fine running Racy 5.3 but not, running Precise, and, perhaps, how to solve this?

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Fri 11 Jan 2013, 05:42    Post subject: awk -e  

I have no idea how to solve this by myself.
You could report this in bug section for precise Rolling Eyes
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 11 Jan 2013, 05:44    Post subject:  

Hello,
Found the solution: awk version which comes with Racy is 4.0.0 and the one which comes with Puppy Precise is 3.1.8.
Quote:
You could report this in bug section for precise
this is what I am doing now...
Thank you!

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0561s ][ Queries: 11 (0.0071s) ][ GZIP on ]