03-09-2015
Confused with your update. Is it working or not?
If not, what error are you getting?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello ,
I am trying to replace a word :: complete to Failed .
work: complete
Sed command which i am using is given below ::
sed s/work: complete/Failed/g temp1.txt > temp2.txt (Sed command is grabled if i use the above .. because of space which is there between work: and complete. I... (6 Replies)
Discussion started by: raghav1982
6 Replies
2. UNIX Desktop Questions & Answers
Hi,
I have to replace the character AL2 with AL16 which I have in one of my text file .
I used the sed command like this
sed 's/sed 's/AL2/AL16/g' test_carr.dat>test_carr1.dat
But it is not replacing this value to the output file.
The test_carr.dat file contains data like this
cat... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies
3. Shell Programming and Scripting
Hi everybody,
I have come across a typical problem:
I need to use sed command to replace an apostrophe but it is saying no match found in the error
sed -e 's/`/'/g' ...but it is not working. Can you please tell me how to use this apostrophe in this sed command please. Thanks.
Rubin (8 Replies)
Discussion started by: RubinPat
8 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I want to remove the / found when executing the date command. When I use: date +%D | sed 's/\///'
I get: 1105/09
I tried: date +%D | sed 's/\*$///'
I need to remove all / from the date command, but it does not seem to work (5 Replies)
Discussion started by: mojoman
5 Replies
5. Shell Programming and Scripting
I need to search for a keyword UTF-16 in a list of files if that keyword is found then i need to convert the file to UTF-8 format using iconv command.
After this i should substitute the UTF-16 keyword inside the file to UTF-8.
Please suggest how to do this in shell scripting. (11 Replies)
Discussion started by: Shruthi8818
11 Replies
6. Shell Programming and Scripting
I ran one the script in debug mode in linux and have a problem
ret='$prmAttunityUser=ais'
Now i need to remove $ from this '$prmAttunityUser=ais' so i had added a sed command like this sed 's/$//g' but its not working could you all please help me with an alternate command
I want the output... (3 Replies)
Discussion started by: vee_789
3 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to use a variable within the sed command but I am not able to get the output.
When I am using the following command (without variable) its working fine:
sed -n '/2011\/12\/10 18:11:11./,$p' < Log.txt > Delta_Log.txt
But when I am putting the value 2011\/12\/10... (4 Replies)
Discussion started by: acoomer
4 Replies
8. Shell Programming and Scripting
I have a file that contains lines like this:
allgroups: cn=Role1,cn=groups,o=xyz,st=mn,c=us
allgroups: cn=Role1,cn=groups,o=xyz,st=mn,c=us
I want to remove the string :
,cn=groups,o=xyz,st=mn,c=us
and so I tried to use SED. i tried to assign it to a variable and use it:
... (3 Replies)
Discussion started by: vskr72
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I want to use a code like
sed -n "1,9988p" filename | wc -l
I tried
from=1
till=9988
sed -n "/$from/,/$till/p" filename |wc -l
Issue:
sed -n "1,9988p" filename | wc -l -- Returns 9988 rows
But
sed -n "/$from/,/$till/p" filename |wc -l # Returns > 9988 rows(Complete file)
I... (2 Replies)
Discussion started by: Gurkamal83
2 Replies
10. Shell Programming and Scripting
Hi,
I have a script that replaces one string with the other in all files under the specified directory.
!/bin/bash
# **************** Change Variables Here ************
startdirectory="/opt/app/properties/tmp_new"
searchterm="Oracle/Middleware/"
replaceterm=""
#... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT DEBIAN
intltool-update
INTLTOOL-UPDATE(8) System Manager's Manual INTLTOOL-UPDATE(8)
NAME
intltool-update - updates PO template file and merge translations with it
SYNOPSIS
intltool-update [option]...
intltool-update LANGCODE
DESCRIPTION
intltool-update generates new po file templates from source code, and merges existing translations with these new po templates.
You must change working directory to the subdirectory containing translations (usually "po/") before running intltool-update.
OPTIONS
When executing intltool-update , only one mode of operation is allowed each time.
Mode of operation
-p
--pot
Generate po template (.pot) only.
-s
--headers
Executes intltool-extract(8) to extract strings inside XML/INI style files listed in POTFILES.in, and writes the extracted strings into
header files, so that the strings can be recognised by xgettext(1).
-m
--maintain
Search for left out files, which should have been listed in POTFILES.in or POTFILES.skip. A list of all these files are written into
another file called "missing".
-r
--report
Display a status report for all translations in the software.
-d LANGCODE
--dist LANGCODE
Merge LANGCODE.po with existing PO template.
Other options
-g NAME
--gettext-package=NAME
Manually specify PO template file name, instead of determining the name automatically from source. Useful with -p/--pot option. This
option has an additional effect: the name of current working directory is no more limited to "po" or "po-*".
-o FILENAME
--output-file=FILENAME
Manually specify output FILENAME after merging old translation with PO template. Useful either with -d/--dist option or without any
option.
-x
--verbose
Display lots of feedback.
--version
Show version information.
--help
Show usage and basic help information.
EXAMPLES
Creates a new PO template from source code, and name it foo.pot:
intltool-update --pot --gettext-package=foo
Updates translation file xy.po using existing po template called "bar.pot", and writes output into "xy1.po":
intltool-update --dist --gettext-package=bar --output-file=xy1.po xy
Creates new PO template and updates translation file xy.po (xy.po is overwritten with new content):
intltool-update xy
(same as intltool-update --pot && intltool-update --dist xy)
FILES
po/POTFILES.in
Contains list of source files which contain translatable strings, one file per line.
po/POTFILES.skip
po/POTFILES.ignore (obsolete)
Contains list of source files which should be ignored when searching for translatable strings.
REPORTING BUGS
Report bugs to http://bugs.launchpad.net/intltool
AUTHOR
Darin Adler <darin@bentspoon.com>
Kenneth Christiansen <kenneth@gnu.org>
Maciej Stachowiak <mjs@eazel.com>
SEE ALSO
intltoolize(8), intltool-prepare(8), intltool-extract(8), intltool-merge(8), xgettext(1)
intltool 2003-08-02 INTLTOOL-UPDATE(8)