I am getting back into bash and this is probably really simple but I am drawing a blank or over thinking it or both.
I want to use grep to find everywhere a certain string is found. I want the for loop prompt the user to delete the first match it finds and then go to the next one and then so on and so forth.
NOTICE: This site has been archived. All content is read-only and registration is disabled.
A new site is being built and the Basic Action Games Discord server is an active hub for discussion and games.
-Admin
A new site is being built and the Basic Action Games Discord server is an active hub for discussion and games.
-Admin
For loop
- MrJupiter
- Cosmic Hero
- Posts: 1505
- Joined: Mon Apr 05, 2010 11:00 pm
- Location: Trenton, Ont. (Canada)
Sorry galahad, but this BASH forum is for the BASH: Ultimate Edition tabletop, role-playing game (as well as its spin-offs: BASH SCI-FI and BASH FANTASY).
http://www.rpgnow.com/product/65882/BAS ... ?term=bash
http://www.rpgnow.com/product/65882/BAS ... ?term=bash