10-12-2010
You, too, deserve line feeds and indentation so your code structure is obvious. The bug you prevent and job you save may be your own!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i need to select a few columns of two txt files and write it to a new file. there is one common field for both of these files.
plz help me in this
thanks in advance (4 Replies)
Discussion started by: kolvi
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I want to merge two lines in a file till the end of the file. So what could be the command to get so.
say file name : sample.txt
contents:
country=1
send apps =1 rece=2
country=2
send apps =3 rece=3
..
...
output:
country=1;send apps =1 rece=2
country=2;send apps =3... (6 Replies)
Discussion started by: thaduka
6 Replies
3. Shell Programming and Scripting
I need to write a script that reads through an input .txt file and replaces the end value with the end value of the next line for lines that have distance <=4000. The first label line is not actually in the input. In the below example, 3217 is the distance from the end of the first line to the... (12 Replies)
Discussion started by: awknerd
12 Replies
4. Shell Programming and Scripting
Hi,
Is there any way to merge two lines based on specific occurance of a character in a file.
I am having a flat file which contains multiple records.
Each row in the file should contain specified number of delimiter.
For a particular row , if the delimiter count is not matched with... (2 Replies)
Discussion started by: mohan_tuty
2 Replies
5. Shell Programming and Scripting
Hi,
I want to merge the lines starting with a comma symbol with the previous line of the file.
Input :
cat file.txt
name1,name2
,name3,name4
emp1,emp2,emp3
,emp4
,emp5
user1,user2
,user3
Output
name1,name2,name3,name4
emp1,emp2,emp3,emp4,emp5 (9 Replies)
Discussion started by: mohan_tuty
9 Replies
6. Shell Programming and Scripting
Hi ,
I'm looking for a way to merge two lines only for a given pattern / condition.
Input :
abcd/dad + -49.201 2.09 -49.5 34 ewrew rewtre *
fdsgfds/dsgf/sdfdsfasdd +
-4.30 0.62 -49.5 45 sdfdsf cvbbv *
sdfds/retret/asdsaddsa +
... (1 Reply)
Discussion started by: novice_man
1 Replies
7. Shell Programming and Scripting
Hi everyone,
I have two files (A and B) and want to combine them to one by always taking 10 rows from file A and subsequently 6 lines from file B. This process shall be repeated 40 times (file A = 400 lines; file B = 240 lines).
Does anybody have an idea how to do that using perl, awk or sed?... (6 Replies)
Discussion started by: ink_LE
6 Replies
8. Shell Programming and Scripting
I have been working of this script for a very long time and I have searched the internet for direction but I am stuck here.
I have about 3000 files with two columns each. The length of each file is 50000. Each of these files is named this way b.4, b.5, b.6, b.7, b.8, b.9, b.10, b.11, b.12... (10 Replies)
Discussion started by: iconig
10 Replies
9. Shell Programming and Scripting
Hello,
I have a file with few lines starting with a digit (1-5 only ) followed by a dot (.). Remaining all the lines to be merged with its previous numbered lines. Merging must be done with a space.
E.g.,
Source file:
3. abc def
xyz
5. pqr mno
def
4. jkl uvw
7. ghi
1. abc xyz
6. mno... (4 Replies)
Discussion started by: magnus29
4 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
webservice::youtube::feeds
WebService::YouTube::Feeds(3pm) User Contributed Perl Documentation WebService::YouTube::Feeds(3pm)
NAME
WebService::YouTube::Feeds - Perl interface to YouTube RSS Feeds
VERSION
This document describes WebService::YouTube::Feeds version 1.0.3
SYNOPSIS
use WebService::YouTube::Feeds;
my $feeds = WebService::YouTube::Feeds->new( { ua => '...' } );
my @videos = $feeds->tag($tag);
my @videos = $feeds->user($user);
my @videos = $feeds->recently_added;
my @videos = $feeds->recently_featured;
my @videos = $feeds->top_favorites;
my @videos = $feeds->top_rated;
my @videos = $feeds->most_discussed_month;
my @videos = $feeds->most_discussed_today;
my @videos = $feeds->most_discussed_week;
my @videos = $feeds->top_viewed;
my @videos = $feeds->top_viewed_month;
my @videos = $feeds->top_viewed_today;
my @videos = $feeds->top_viewed_week;
DESCRIPTION
This is a Perl interface to YouTube RSS Feeds.
See About RSS <http://youtube.com/rssls> for details.
SUBROUTINES
/METHODS
new( \%fields )
Creates and returns a new WebService::YouTube::Feeds object. %fields can contain parameters enumerated in "ACCESSORS" section.
parse_rss($rss)
Parses RSS and returns the result. $rss should be an object that XML::Simple can understand.
tag( $tag )
Returns an array of WebService::YouTube::Video object. $tag is a keyword string separated by a space.
See <http://youtube.com/rssls> for details.
user( $user )
Returns an array of WebService::YouTube::Video object. $user is an username.
See <http://youtube.com/rssls> for details.
recently_added( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
recently_featured( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_favorites( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_rated( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
most_discussed_month( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
most_discussed_today( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
most_discussed_week( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_viewed( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_viewed_month( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_viewed_today( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
top_viewed_week( )
Returns an array of WebService::YouTube::Video object.
See <http://youtube.com/rssls> for details.
ACCESSORS
ua
LWP::UserAgent object
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
WebService::YouTube::Feeds requires no configuration files or environment variables.
DEPENDENCIES
HTTP::Date, LWP::UserAgent, XML::Simple, WebService::YouTube::Util, WebService::YouTube::Video
INCOMPATIBILITIES
None reported.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to "bug-webservice-youtube@rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-YouTube>. I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
AUTHOR
Hironori Yoshida <yoshida@cpan.org>
LICENSE AND COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
perl v5.10.1 2010-08-01 WebService::YouTube::Feeds(3pm)