Sponsored Content
Top Forums Shell Programming and Scripting SED Search in YouTube file not working. Post 302435864 by ygemici on Thursday 8th of July 2010 10:57:43 AM
Old 07-08-2010
Code:
# sed -n '/fmt_url_map/p'  $file | sed -e 's/"/\n/g' -e "s/'/\n/g" > youtube2.html

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to search and replace a particular line in file with sed command

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)
Discussion started by: sshah1001
2 Replies

2. Shell Programming and Scripting

Awk/Sed: Search Pattern from file and Print

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)
Discussion started by: saint2006
2 Replies

3. Shell Programming and Scripting

sed help - search/copy from one file and search/paste to another

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)
Discussion started by: ncwxpanther
5 Replies

4. Shell Programming and Scripting

Sed emptying file when i use for search replace operation

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)
Discussion started by: rakeshkumar
3 Replies

5. Shell Programming and Scripting

Search pattern within file using sed..

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)
Discussion started by: sankasu
6 Replies

6. Shell Programming and Scripting

sed and awk not working on a large record file

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)
Discussion started by: Gurkamal83
6 Replies

7. Shell Programming and Scripting

Search and replace is not working by sed or awk

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)
Discussion started by: ashissau
4 Replies

8. Shell Programming and Scripting

sed to search and replace - iterating on a file

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)
Discussion started by: tigerinopen
2 Replies

9. Shell Programming and Scripting

sed command not working for me to change text in a file

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)
Discussion started by: curiousmal
7 Replies

10. What is on Your Mind?

YouTube: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search

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
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)
All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy