Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Question on bash command line Post 303020967 by kraljic on Wednesday 1st of August 2018 10:05:39 AM
Old 08-01-2018
Question on bash command line

OS : RHEL / Oracle Linux 6.8

In bash shell, how can I replace a character under the cursor with another character ?

In the below example , after I typed the following line, I realized that I meant 7013 and not 2013. So I move the cursor to the left and keep it on top of 2 (of 2013) and I want to replace 2 with 7. How can I do that ?

$ echo hello world 2013

This question is not about replacing characters within vi/vim/emacs

A video example (for more clarity)
In the below video, how is this guy changing 2010 to 2011 instantly ? He also changes 2011 to 2012 , ... etc . I tried googling and I couldn't find anything on this. Hence posting it here.

Oracle Performance Tuning - Loading Data - 03 Using manual parallelism and changing initrans - YouTube

Last edited by kraljic; 08-01-2018 at 11:13 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

editing bash command line with vi

Is there a way using bash that I can edit a command line using vi. I.e. if I have a long command line and I want to edit it.....by typing vi and then having the command open in an editing window.... I beleive this can be done in k shell by pressing v....however can find out how this can be... (3 Replies)
Discussion started by: peter.herlihy
3 Replies

2. Shell Programming and Scripting

BASH Command Line Typo -- Can't Get Out

Hi Sorry to post a bit of an "I'm an idiot" post, but I did a typing error and typed "ls 'l" instead of "ls -l". This seems to have made me enter some sort of mode or other that I can't seem to be able to get out of. The new line prompt is > (if that helps). Sorry for posting such a... (1 Reply)
Discussion started by: Viola
1 Replies

3. AIX

Typing "bash" at the command line spawns two bash processes

Server: IBM p770 OS: AIX 6.1 TL5 SP1 When one of our develoeprs types "bash" on the command line to switch shells, it hangs. For some reason, two bash processes are created....the first bash process spawns a second bash process in the same console, causing a hang. Anyone have any idea what... (2 Replies)
Discussion started by: wjssj
2 Replies

4. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

5. Shell Programming and Scripting

Bash - Loading a command's output line by line into an array

I have been trying this a lot of different ways and haven't found too much online. Here's what I've got so far: j=0 declare -a first zero=(`cat $tmpfile`) for i in "${zero}" do command $i >> "${first}" ... (4 Replies)
Discussion started by: Azrael
4 Replies

6. UNIX for Dummies Questions & Answers

NEWB Question - BASH COMMAND RESULT for ${0##*/}

This should be extremely simple and someone will probably answer it in .5 seconds. I need to know what: VARIABLE=${0##*/} does? I do not have a shell handy to just try it in. I am reading through some scripts and need to understand this line. Any help is appreciated. Many thanks! -... (3 Replies)
Discussion started by: chrisgoetz
3 Replies

7. Shell Programming and Scripting

Question about Shebang line of Bash Script

Hello All, I was writing a Bash shell script that will be executed on both an AIX server (/usr/bin/ksh) and a SLES server (/bin/bash). The AIX server has Bash installed at "/usr/bin/bash", which is in a different dir then the SLES server. So basically I am writing the script on the SLES... (4 Replies)
Discussion started by: mrm5102
4 Replies

8. Shell Programming and Scripting

Cp command works on command line but not in bash

The below command moves all the .vcf files into the directory. cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
WebService::YouTube::Util(3pm)				User Contributed Perl Documentation			    WebService::YouTube::Util(3pm)

NAME
WebService::YouTube::Util - Utility for WebService::YouTube VERSION
This document describes WebService::YouTube::Util version 1.0.3 SYNOPSIS
use WebService::YouTube::Util; # Get an URI of RSS my $uri = WebService::YouTube::Util->rss_uri( 'global', 'recently_added' ); # Get an URI of REST API my $uri = WebService::YouTube::Util->rest_uri( $dev_id, 'youtube.videos.list_by_tag', { tag => 'monkey' } ); # Get a downloadable URI my $uri = WebService::YouTube::Util->get_video_uri('rdwz7QiG0lk'); # Get a video which type is .flv my $content = WebService::YouTube::Util->get_video('rdwz7QiG0lk'); DESCRIPTION
This is an utility for WebService::YouTube. SUBROUTINES
/METHODS rss_uri( $type, $arg ) Returns a URI of RSS. $type should be 'global' or 'tag' or 'user'. $arg is required when $type is 'tag' or 'user'. rest_uri( $dev_id, $method, \%fields ) Returns a URI of REST API. $dev_id is your developer ID of YouTube. $method is a method name like a 'youtube.*.*'. %fields can contain optional parameter. get_video_uri( $video, \%args ) Returns a downloadable URI of $video. $video should be a video ID or a WebService::YouTube::Video object. %args can contain some optional arguments. ua LWP::UserAgent object get_video( $video, \%args ) Returns a downloaded content of $video. $video should be a video ID or a WebService::YouTube::Video object. %args can contain some optional arguments. ua LWP::UserAgent object DIAGNOSTICS
type of ... is not supported No such RSS. The type should be 'global' or 'tag' or 'user'. got a page but it is invalid page Maybe, YouTube is being maintained. :-) CONFIGURATION AND ENVIRONMENT
WebService::YouTube::Util requires no configuration files or environment variables. DEPENDENCIES
WebService::YouTube, LWP::UserAgent, URI::Escape 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 2009-01-20 WebService::YouTube::Util(3pm)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy