Hello,
I have a file and in that, I want to search for a aprticular word and then replace another word in the same line with something else.
Example: In file abc.txt, there is a line
<host oa_var="s_hostname">test</host>
I want to search with s_hostname text and then replace test with... (2 Replies)
Hi,
I want to search for patterns (from a file) in a file and print the line matching the patterns and the line before it.
I have to search for 100s of patterns from a file.
Any help with AWK or Sed.
Thanks! (2 Replies)
I am a newbie and would like some help with the following -
Trying to search fileA for a string similar to -
AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3
I then want to replace that string with a string from fileB - ... (5 Replies)
Hi Friends
I am new to sed programming , i found that the below code can search for the $ToSearch and Replace it with $ToReplace ( $ToSearch and $ToReplace are my variables in my script )
sed "s/$ToSearch/$ToReplace/" $file > $output
mv $output $file
In testing the script i found that... (3 Replies)
Hi,
Could someone help me in figuring out a way using which i can search for a specific pattern.
Eg. JUSTDOIT..I have to print just the word "DO" from "JUSTDOIT"
If the same word JUSTDOIT is print n number of times (6 Replies)
Hi All,
I have a very large single record file.
abc;date||bcd;efg|......... pqr;stu||record_count;date
when i do wc -l on this file it gives me "0" records, coz of missing line feed.
my problem is there is an extra pipe that is coming at the end of this record
like... (6 Replies)
Hi ,
I have one file and in this file i have one like
TEST1 KEY0=AAC040R1;AAC041R1ISE;AAC041R2ISE;AAC370R1;ADR0500;ADR0600;AME245R1;AME245R2;BAP0135;BAP0300;PPINVDTD*;PPJERPTD*;PPJERPT*;PRBSUMM*;:
i want to replace this line with the following line
TEST1... (4 Replies)
Hi,
I am new to sed scriping but do have some basic scripting skills. I have a properties file props.conf with name/value pairs written in it. Sample is
Name1=test
Name2=notest
Then I have a template file (can be xml or simple text) which will have 'keys' embedded in it. Keys can... (2 Replies)
UNIX gurus
I need your help with the following (The server is an AIX box).
I have a text file with the following information:
********************************************************
SOME LINES
case
:WORD1
SOME LINES
:WORD2
SOME LINES
:WORD3
SOME LINES
esac
SOME LINES... (7 Replies)
Getting a bit more comfortable making quick YT videos in 4K, here is:
Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search Console
https://youtu.be/I6b9T2qcqFo (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
webservice::youtube
WebService::YouTube(3pm) User Contributed Perl Documentation WebService::YouTube(3pm)NAME
WebService::YouTube - Perl interface to YouTube
VERSION
This document describes WebService::YouTube version 1.0.3
SYNOPSIS
use WebService::YouTube;
my $youtube = WebService::YouTube->new( { dev_id => 'YOUR_DEV_ID' } );
# Get videos via REST API
my @videos = $youtube->videos->list_featured;
# Get videos via RSS Feed
my @videos = $youtube->feeds->recently_added;
DESCRIPTION
This is a Perl interface to YouTube API and RSS. See Developers Page <http://youtube.com/dev> and About RSS <http://www.youtube.com/rssls>
for details.
This module support only Legacy API, does not support YouTube Data API based on Google data protocol. See YouTube Data API Overview
<http://code.google.com/apis/youtube/overview.html> for details.
SUBROUTINES /METHODS
new(\%fields)
Creates and returns a new WebService::YouTube object. %fields can contain parameters enumerated in "ACCESSORS" section.
videos( )
Returns a WebService::YouTube::Videos object.
feeds( )
Returns a WebService::YouTube::Feeds object.
ACCESSORS
dev_id
Developer ID
ua
LWP::UserAgent object
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
WebService::YouTube requires no configuration files or environment variables.
DEPENDENCIES
Class::Accessor::Fast, WebService::YouTube::Videos, WebService::YouTube::Feeds
INCOMPATIBILITIES
WWW::YouTube
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(3pm)