06-22-2009
please give it a try and post what you have tried...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I generally use Perl for this
ex.
perl -e 's/pattern/replace/g' -p -i <filename>
I did something like this..
find . -type f -exec perl -e 's/pattern/replace/g' -p -i {} \;
I want to do this with "sed"
but what I get is the output being printed on the screen..
i can do sed... (3 Replies)
Discussion started by: oldtrash
3 Replies
2. Shell Programming and Scripting
Hi
I need some help using shell script to edit a file.
My original file has the following format:
/txt/email/myemail.txt
/txt/email/myemail2.txt
/pdf/email/myemail.pdf
/pdf/email/myemail2.pdf
/doc/email/myemail.doc
/doc/email/myemail2.doc
I need to read each line. If the path is... (3 Replies)
Discussion started by: tiger99
3 Replies
3. Shell Programming and Scripting
Hey guy,
how to make bash script to create foo.txt file and add current date into file content and that file always append.
example: today the script run and add today date into content foo.txt
and tomorrow the script will run and add tomorrow date in content foo.txt without remove today... (3 Replies)
Discussion started by: chenboly
3 Replies
4. Shell Programming and Scripting
Hi all,
I need to write an automated bash shell script which performs such operations:
1. Grep the header of everyline with the initial of "T" in "FILE_A"
2. Perform a for loop,
Count the numbers of comma in the line of code,
if (no. of comma < 17)
ADD the comma until 17;
... (2 Replies)
Discussion started by: big_nutz
2 Replies
5. Shell Programming and Scripting
How to edit file content at the specific line? For example at below
The things to edit --> This is line 2. And it is below line 1.
This is line 1.
This is line 2. # i want to append some words at this row line. How?
This is line 3. (8 Replies)
Discussion started by: alvin0618
8 Replies
6. Shell Programming and Scripting
Hello everyone,
I work under Ubuntu 11.10 (c-shell)
I need a script to create a new text file whose content is the text of another text files that are in the directory $DIRMAIL at this moment.
I will show you an example:
- On the one hand, there is a directory $DIRMAIL where there are... (1 Reply)
Discussion started by: tenteyu
1 Replies
7. Shell Programming and Scripting
Plese help I need a urgent requirement.
Ex: test.log
requirement : using shell script I need to archive the log file and nil and the content of (test.log) file to 0 kb
and then in the archive folder log files are name to test.tar
test1.tar
test2.tar
EX:
/home/abc/
test.log ... (1 Reply)
Discussion started by: johney1981
1 Replies
8. UNIX for Beginners Questions & Answers
I have a script that sorts and processes unsorted files to newly created directories.
Its working great, but I am trying to understand the leanest method to get the script to create an additional file within each newly created directory that:
Contains a list of all files in the directory... (4 Replies)
Discussion started by: Braveheart
4 Replies
9. Shell Programming and Scripting
Hi Gurus,
I am SQL developer and new unix user.
I need to create some file and file content based on information in two files.
I have one file contains basic information below file1 and another exception file file2. the rule is if "zone' and "cd" in file1 exists in file2, then file name is... (13 Replies)
Discussion started by: Torhong
13 Replies
10. UNIX for Beginners Questions & Answers
I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error message has some special character. how to escape the special character and insert my data into the... (7 Replies)
Discussion started by: DevAakash
7 Replies
LEARN ABOUT DEBIAN
jifty::script::po
Jifty::Script::Po(3pm) User Contributed Perl Documentation Jifty::Script::Po(3pm)
options
Returns a hash of all the options this script takes. (See the usage message for details)
run
Runs the "update_catalogs" method.
_check_mime_type FILENAME
This routine returns a mimetype for the file "FILENAME".
update_catalogs
Extracts localizable messages from all files in your application, finds all your message catalogs and updates them with new and changed
messages.
update_catalog FILENAME
Reads "FILENAME", a message catalog and integrates new or changed translations.
extract_messages
Find all translatable messages in your application, using Locale::Maketext::Extract.
print_help
Prints out help for the package using pod2usage.
If the user specified --help, prints a brief usage message
If the user specified --man, prints out a manpage
pot_name
Returns the name of the po template.
NAME
Jifty::Script::Po - Extract translatable strings from your application
SYNOPSIS
jifty po --language <lang> Creates a <lang>.po file for translation
jifty po Updates all existing po files
Options:
--language Language to deal with
--dir Additional directories to extract from
--js Generate json files from the current po files
--help brief help message
--man full documentation
OPTIONS
--language
This script an option, "--language", which is optional; it is the name of a message catalog to create.
--dir Specify explicit directories to extract from. Can be used multiple times. The default directories will not be extracted if you use
this option.
--template_name
Specify the name of the po template. Default to the lower-cased application name.
--podir Specify the directory of the po templates.
--js If "--js" is given, other options are ignored and the script will generate json files for each language under
share/web/static/js/dict from the current po files. Before doing so, you might want to run "jifty po" with "--dir
share/web/static/js" to include messages from javascript in your po files.
--help Print a brief help message and exits.
--man Prints the manual page and exits.
DESCRIPTION
Extracts message catalogs for your Jifty app. When run, Jifty will update all existing message catalogs, as well as create a new one if you
specify a --language option.
perl v5.14.2 2010-12-08 Jifty::Script::Po(3pm)