Skip to content

u/LordZer

In this archive from Jun 2010 to Feb 2023

4
posts
19
comments
2
media
99
score

Yes, it is possible to use the result of the date command in the replacement text of the sed command. You can use command substitution to capture the output of the date command and then use it in the replacement text.

Here's an example command that you can use:

sed -i "s/old-text/$(date '+%Y-%m-%d')/g" input.txt

In this command, the $(date '+%Y-%m-%d') is used to capture the output of the date command and substitute it in place of new-text in the sed command. The -i option is used to modify the input file input.txt in place.

Note that we're using double quotes " instead of single quotes ' for the sed command, so that the command substitution $(date '+%Y-%m-%d') is expanded by the shell before it's passed to sed.

6 points

NVMe is really new and imaging has been the standard in the IT world for at least a decade. Not only that, the entire sub preaches keeping your home folder on a separate drive/partition so you really shouldn’t have that much data in your OS install that isn’t part of the OS anyhow. There’s not a lot of ifs here that you need to cross off of you have the aptitude to troubleshoot your problems in Linux anyhow.

2 points

Ok, so the new Ubuntu (10.04) Did not have this problem, however on a different note anyone know how to make my BIOS not hang if there is a USB HDD plugged in and legacy support is on? because i cannot choose which OS to boot to as my only KBs are USB...

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.