Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Software] [Solved] Bash with !

$
0
0
We have:
!
$(ls /boot/vmlinuz-*-amd64) 'abc' $(ls -l /dev/disk/by-uuid|grep nvme0n1p3|head -n 1|awk '{print$9}'


Output:

Code:

!$(ls /boot/vmlinuz-*-amd64) 'abc' 5692-CD2D
Trying:

Code:

echo -e "!\n\$(ls /boot/vmlinuz-*-amd64) 'abc' $(ls -l /dev/disk/by-uuid|grep nvme0n1p3|head -n 1|awk '{print$9}')"-bash: !/\n: event not found

Code:

echo -e "\!\n\$(ls /boot/vmlinuz-*-amd64) 'abc' $(ls -l /dev/disk/by-uuid|grep nvme0n1p3|head -n 1|awk '{print$9}')"\!$(ls /boot/vmlinuz-*-amd64) 'abc' 5692-CD2D
What is an event here? How to do?

https://stackoverflow.com/questions/669 ... es-in-bash.

btw I'm annoyed with that because of https://github.com/storaged-project/udisks/issues/1337, viewtopic.php?t=161440 (should be in General Debian, my bad, move it) not done.

Update:
No longer needed, I use /etc/fstab. But the question remains...

Statistics: Posted by jebez — 2025-01-08 12:43 — Replies 2 — Views 68



Viewing all articles
Browse latest Browse all 3423

Trending Articles