LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2021, 06:15 PM   #76
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625

Bash manual is terrible. True horror.
 
Old 02-25-2021, 06:48 PM   #77
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
You just don't know how to prepare it properly.
 
Old 02-25-2021, 07:11 PM   #78
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Can you learn C from its Backus-Naur grammar description?
 
Old 02-25-2021, 07:21 PM   #79
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Well, it's Bash Reference Manual after all. If you want a guide, there are ABS as well as Greg Wooledge's old and Maarten Billemont's new Bash Guide.

Last edited by shruggy; 02-25-2021 at 07:28 PM.
 
Old 02-25-2021, 07:48 PM   #80
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
How does it looks like?
Code:
% echo '"'"'*'"'"'
"'*'"
lets try to find out explanation in manual. Perl is nice perlintro , perlfunc etc. Imagine something like that for bash. It also would be nice.
 
Old 02-25-2021, 08:12 PM   #81
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Well,

Last edited by shruggy; 02-27-2021 at 08:07 AM.
 
Old 02-27-2021, 07:51 AM   #82
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Well,
There's some good info in there. Thanks for sharing!
 
Old 02-27-2021, 07:54 AM   #83
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Quote:
Originally Posted by Gemu View Post
Grub 2's major improvements over grub legacy

1. it offers Script support including conditional statements and functions.
It's the complexity of GRUB2 that I loathe. What's wrong with just a simple menu that doesn't have to be rewritten every time you boot?

Last edited by hazel; 02-27-2021 at 07:58 AM.
 
1 members found this post helpful.
Old 02-27-2021, 10:16 AM   #84
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It's the complexity of GRUB2 that I loathe. What's wrong with just a simple menu that doesn't have to be rewritten every time you boot?
It is more complicated than grub legacy. What I've found is to back up all your working grub2 menuentyrs and keep them forever.

And at least on USB's you can copy the ones you need over to the grub.cfg, edit it to reflect USB being (hd0, msdos1) at boot time and they work without ever running update-grub.

I have grub2 thumb drives that will boot anything I have installed on my desktop HD and on the USB itself.
Windows 10 on sdb2, Knoppix 8.6.1 on sdb4, Ubuntu on sda2, Mint on sda4.


With grub legacy you could edit the boot menu during boot and once booted edit the menu.lst to how you made it boot and it simply worked next time around. Grub2 will do the same on USBs, the menu's are just more complex.
 
Old 02-27-2021, 10:23 AM   #85
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
A few days ago I watched a vidtube ad a guy said Tux Sux . Some guy named Lameduck if I remember correctly ?
 
Old 02-27-2021, 06:44 PM   #86
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
rpm2cpio.

Never needed it before today.
 
Old 02-28-2021, 08:07 AM   #87
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
It's not too hard to emulate rpm2cpio with a shell script. Actually, rpm comes with such a script installed under /usr/lib/rpm/rpm2cpio.sh.
Code:
#!/bin/sh
set -e
export LC_ALL=C
file -b "$1" | grep -q ^RPM || { echo "Usage: $0 <file.rpm>" >&2; exit 1;}
[ -t 0 ] || { echo This script cannot read from stdin >&2; exit 2;}
pkg=$1

skip_hdr_struct() {
  align=$1 # flag: do we need alignment padding to 8-byte boundary?
  set -- `hexdump -s$((off+8)) -n8 -e'"0x" 4/1 "%02X" " "' $pkg`
  : $((off+=16+16*$1+$2+(align?-$2&7:0))) # hsh+16*idx+data[+align8_padding]
}

off=96 # size of RPM lead
skip_hdr_struct 1 # skip RPM signature (+ alignment padding)
skip_hdr_struct 0 # skip RPM header

EXTRACTOR="dd if=$pkg ibs=$off skip=1"
COMPRESSOR=`($EXTRACTOR count=1 | file -b - | tr A-Z a-z) 2>/dev/null`
case $COMPRESSOR in
  gzip\ *|bzip2*|xz\ *|zstan*) DECOMPRESSOR="${COMPRESSOR%% *} -dc";;
                     *cpio\ *) DECOMPRESSOR=cat;;
                            *) DECOMPRESSOR='lzma -dc';; # assume LZMA
esac
$EXTRACTOR 2>/dev/null | $DECOMPRESSOR
 
2 members found this post helpful.
Old 02-28-2021, 08:52 AM   #88
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I've used KDE since 2005 & never knew about Yakuake. Yikes, must be a big rock I'm crawling out from under!

I've used Konsole almost exclusively up until last week when I hit F12 by mistake and Yakuake slid down on my monitor. It's Konsole based so my transition was almost immediate. A few tweaks of the settings and I have a new fav X Terminal Emulator.
 
Old 03-08-2021, 10:44 PM   #89
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
The "type" command found while searching for way to know what a function was in the shell like you can do with alias alias_name and it will show you what it is. Well the type command does that with telling you what the function is short for.

Code:
zeus@buster-raspi:~$ type f2
f2 is a function
f2 () 
{ 
    find "$1" -name "*$2*"
}
 
Old 03-14-2021, 04:26 AM   #90
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
I've been beefing in another thread about shift-page scrolling on Linux consoles not working with the latest kernels and someone thought I was referring to graphical terminals. In fact I had no idea that you could use shift-page in a graphical terminal; I always use the scrollbox to scroll. So I just tried it and it works. Not that that solves my original problem!

Last edited by hazel; 03-14-2021 at 04:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alright, it's Wednesday. What is something you have learned *new* about Linux within the past 7 days? KGIII General 120 06-15-2021 05:19 AM
What is something new that you have learned about Linux this week? KGIII General 19 05-26-2021 01:51 PM
How do I grep my /var/log/secure file for the past 7 days or so many days? johnmccarthy Linux - Newbie 5 01-04-2013 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration