Centering text on 80 columns with stars:
sed -E ':x
s/^.{,80}$/*&/
s/^.{,80}$/&*/
tx
' file
Notices by Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social), page 7
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Monday, 25-Feb-2019 10:01:54 EST Yes, I Know IT ! 🎓
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Monday, 25-Feb-2019 03:56:44 EST Yes, I Know IT ! 🎓
Delete all but the last line of a file:
sed -n '$p' file -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Sunday, 24-Feb-2019 21:48:25 EST Yes, I Know IT ! 🎓
Check your Bash skills and challenge your friends:
https://www.yesik.it/BASH-IT-OUT#Bash #Shell #Challenge #Puzzle #Linux
#YesIKnowIT @itsfoss2 -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Sunday, 24-Feb-2019 09:41:14 EST Yes, I Know IT ! 🎓
To leave #vim with a non-zero exit code use `:cq`.
In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Sunday, 24-Feb-2019 03:50:09 EST Yes, I Know IT ! 🎓
AWK patterns are far more sophisticated than their SED counterpart:
https://www.yesik.it/EP13In conversation from mastodon.social permalink Attachments
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Saturday, 23-Feb-2019 22:59:32 EST Yes, I Know IT ! 🎓
"I want to learn Linux. Is Kali right for me?"
So, tired of the sterile controversies, I decided to forge my own opinion:
https://itsfoss.com/kali-linux-review/In conversation from mastodon.social permalink Attachments
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Saturday, 23-Feb-2019 17:01:06 EST Yes, I Know IT ! 🎓
Does the opensource adoption in public services have evolved since I published that?
https://itsfoss.com/open-source-adoption-europe/ …#FOSS #OpenData
#eGovernment #PublicAdministrations
#EU #Europe
#YesIKnowIT @itsfoss2In conversation from mastodon.social permalink Attachments
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Saturday, 23-Feb-2019 10:17:28 EST Yes, I Know IT ! 🎓
Print the first column of a space-separated data file:
awk '{print $1}' data.txt # Print out just the first columnFor some unknown reason, I find that easier to remember than:
cut -f1 data.txtIn conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Wednesday, 30-Jan-2019 15:36:17 EST Yes, I Know IT ! 🎓
In the Bash, `~-` is expanded to the content of `OLDPWD`. So:
cd ~-/..
is a shortcut for the 2 commands:
cd "$OLDPWD" (or `cd -`)
cd ..In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Wednesday, 30-Jan-2019 09:17:18 EST Yes, I Know IT ! 🎓
Merging files on a line-by-line basis with the `paste` utility
https://yesik.it/EP23In conversation from mastodon.social permalink Attachments
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Wednesday, 30-Jan-2019 03:47:17 EST Yes, I Know IT ! 🎓
Find words starting with `lin` (according to `/usr/share/dict/words`):
```
look lin
```In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Tuesday, 29-Jan-2019 04:58:18 EST Yes, I Know IT ! 🎓
Poor's (wo)man stopwatch in your shell:
```
time read
```In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Monday, 28-Jan-2019 08:57:01 EST Yes, I Know IT ! 🎓
How to use the `chattr` command to secure shared files. An interesting post by Himanshu Arora on HowtoForge.
https://www.howtoforge.com/linux-chattr-command/BTW, `chattr` has not to be confused with `chmod`!
In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Friday, 25-Jan-2019 13:20:24 EST Yes, I Know IT ! 🎓
vlc -Idummy -Vcaca "Star Wars: Episode IV - A New Hope (1977).mkv"
Play #StarWars as it was originally intended by @GeorgeLucasILM back in the 70s
In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Friday, 25-Jan-2019 08:25:00 EST Yes, I Know IT ! 🎓
.tar, .zip, .gz--you already have seen those extensions at the end of archive files, don't you?
But what do they mean? What is the difference between those formats?
https://itsfoss.com/tar-vs-zip-vs-gz/
#Tar #Zip #Gzi #Archive #FileFormatIn conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Thursday, 24-Jan-2019 12:42:09 EST Yes, I Know IT ! 🎓
Split a fixed-width or delimited text file into individual columns using the `cut` command
https://yesik.it/EP22In conversation from mastodon.social permalink Attachments
-
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Wednesday, 23-Jan-2019 05:11:25 EST Yes, I Know IT ! 🎓
`split` and `csplit`. Old friends, I used them a lot in the 1.44MB floppy disk era...
https://www.linux.com/learn/intro-to-linux/2017/8/splitting-and-re-assembling-files-linux
by Carla Schroder (https://twitter.com/CarlaSchroder)In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Tuesday, 22-Jan-2019 17:01:08 EST Yes, I Know IT ! 🎓
I should definitely investigate Asciinema for my future screencasts:
In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Tuesday, 22-Jan-2019 06:07:38 EST Yes, I Know IT ! 🎓
Excellent post by @benfrederickson showing the programming language popularity on @GitHub as of Jan, 2018
https://www.benfrederickson.com/ranking-programming-languages-by-github-users/Do you think things have evolved since that post?
In conversation from mastodon.social permalink -
Yes, I Know IT ! 🎓 (yesiknowit@mastodon.social)'s status on Monday, 21-Jan-2019 23:36:51 EST Yes, I Know IT ! 🎓
Take a little bit of computer history and a little bit of computer science, mix them together and you have that article introding the fundamental unit of measurement used in computing or electronic engineering.
In conversation from mastodon.social permalink