09-28-2011
I still did not understand whether the command which was given is correct or not?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need a clarification on one of the scripts that i have written, I new to file handling and i need help:
I am trying to find a particular pattern in a file "****** PBX" in set of 5 files named:
xy.cc3
xv.cc3
xx.cc3
xr.cc3
xd.cc3
in a directory. If i find the files starting with these... (16 Replies)
Discussion started by: bsandeep_80
16 Replies
2. Shell Programming and Scripting
Hello,
If I run a program from within shell, the output is displayed in the command line terminal. Is there a way I can capture that output and choose only the very last string in it to send it to a new file?
Thank you (6 Replies)
Discussion started by: Lorna
6 Replies
3. Programming
Hi All,
I have a list of files in a directory ..which are look like:
42420031.1000
42420031.1001
42420031.396
42420031.402
42420031.403
42420031.404
42420031.405
42420031.406
42420031.407
42420031.408
42420031.409
Here when i do ls 42420031* |sort it gives the output as
... (3 Replies)
Discussion started by: sanj_eck
3 Replies
4. Shell Programming and Scripting
I guess by "pattern," I mean something different from how that word is defined in the Linux world. If you take $ to mean a letter (a-z) and # to mean a number (0-9), then the pattern I'm trying to match is as follows:
$$$##-####-###-###.jpg
I'd like to write a script that reads in a list of files... (4 Replies)
Discussion started by: SilversleevesX
4 Replies
5. Shell Programming and Scripting
I have about 35,000 files in one directory. Here I have to write a ksh to take only the filenames of 500 files at a time and put them into a new file. Can anyone please help me.
Thank you. (8 Replies)
Discussion started by: vpv0002
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Thanks,
Jean (9 Replies)
Discussion started by: jeanjkj
9 Replies
7. Shell Programming and Scripting
Hi all,
My file :test.txt just like this:
...........................
From: 333:123<sip:88888888888@bbbb.com
To: <sip:123456@aaaaa.com
.........................
I want a script to capture the string between sip: & @
Expect output:
88888888888
123456
Please help! (4 Replies)
Discussion started by: Alex Li
4 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am working on designing the archival process for my system, where I will have to find distinct file names ( when excluded time_stamp extention ) from given directory and for each file type keep the latest and move all other older to different location ( lets say dir Back ). Below are... (2 Replies)
Discussion started by: freakabhi
2 Replies
9. Shell Programming and Scripting
Hi
I need to do a patten match between files .
I am new to shell scripting and have come up with this so far. It take 50 seconds to process files of 2mb size . I need to tune this code as file size will be around 50mb and need to save time.
Main issue is that I need to search the pattern from... (2 Replies)
Discussion started by: nitin_daharwal
2 Replies
10. UNIX for Beginners Questions & Answers
I am on AIX.
I need to list the contents of the directory based on a pattern and write an XML output file with file names.
If a filename does NOT match the below pattern then write an OUTPUT xml file in the below xml format
Pattern
Starts with (.abc) and contains (def)
Starts with... (4 Replies)
Discussion started by: techedipro
4 Replies
LEARN ABOUT DEBIAN
catalyst::plugin::unicode::encoding
Catalyst::Plugin::Unicode::Encoding(3pm) User Contributed Perl Documentation Catalyst::Plugin::Unicode::Encoding(3pm)
NAME
Catalyst::Plugin::Unicode::Encoding - Unicode aware Catalyst
SYNOPSIS
use Catalyst qw[Unicode::Encoding];
MyApp->config( encoding => 'UTF-8' ); # A valid Encode encoding
DESCRIPTION
On request, decodes all params from encoding into a sequence of logical characters. On response, encodes body into encoding.
METHODS
encoding
Returns an instance of an "Encode" encoding
print $c->encoding->name
OVERLOADED METHODS
finalize_headers
Encodes body into encoding.
prepare_uploads
Decodes parameters, query_parameters, body_parameters and filenames in file uploads into a sequence of logical characters.
prepare_action
Decodes request arguments (i.e. "$c->request->arguments") and captures (i.e. "$c->request->captures").
setup
Setups "$c->encoding" with encoding specified in "$c->config->{encoding}".
handle_unicode_encoding_exception ($exception_context)
Method called when decoding process for a request fails.
An $exception_context hashref is provided to allow you to override the behaviour of your application when given data with incorrect
encodings.
The default method throws exceptions in the case of invalid request parameters (resulting in a 500 error), but ignores errors in upload
filenames.
The keys passed in the $exception_context hash are:
param_value
The value which was not able to be decoded.
error_msg
The exception recieved from Encode.
encoding_step
What type of data was being decoded. Valid values are (currently) "params" - for request parameters / arguments / captures and
"uploads" - for request upload filenames.
SEE ALSO
Encode, Encode::Encoding, Catalyst::Plugin::Unicode, Catalyst.
AUTHORS
Christian Hansen, "ch@ngmedia.com"
Masahiro Chiba
Tomas Doran, "bobtfish@bobtfish.net"
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
perl v5.14.2 2012-05-09 Catalyst::Plugin::Unicode::Encoding(3pm)