Search Results

Search: Posts Made By: DanilOnTheSky
3,566
Posted By vgersh99
how about a little bit more "interesting" - with...
how about a little bit more "interesting" - with the menu:

#!/bin/bash

menu=$(fdisk -l | awk '/Device Boot/ {for(i=2;i<=NF;i++) print substr($i,1, index($i, " ")-1)}' RS= FS='\n';echo 'quit')
...
3,566
Posted By Scrutinizer
Hi, try: grep "^${disk1} " -o...
Hi, try:
grep "^${disk1} " -o --max-count=1
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy