• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

for loop

Replace keyword with its filename without extension : bash script

February 11, 2014 by Sharad Chhetri Leave a Comment

Today in this example we will use bash script. The task is replace keyword with its filename without extension.To accomplish this task we will use bash script.In bash script we will use for loop and sed command .To elaborate this example,lets assume we have 4 files called file1.txt red.txt blue.txt roger.txt The above each file […]

Filed Under: Tips And Tricks Tagged With: bash script, for loop, sed

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Commands

Allow only members of Wheel group to use su command on RHEL/CentOS

sed : find the pattern (keyword) and delete the line from file

semanage command not found in CentOS 6 and RHEL 6

Search keyword in all available man pages – man command

grep command to find multiple strings or keyword from file

yum : how to find rpm package which has certain command or file

Learn Linux Date Command With Examples

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

Keep logs of user after sudo su – : Secondary Logging

WordPress host IP changed not able to open wp-admin and site page looks scattered

How to use grep command to get fixed pattern or exact keyword

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat

GNU Screen

error could not configure a c compiler Linux

4 Different commands to find system uptime in linux

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands With Examples For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy