Tuesday, January 2, 2024
How to store command output in bash variable
x="$(head -15 testfile.txt)"
This would store the first 15 lines of testfile.txt in variable x.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
How to create portable applications (also introducing PAL)
It seems that the most popular article on this blog is " How to make portable applications " written back in 2007. Reading it aga...
Ubuntu Hardy Heron on a Sony Vaio VGN-FZ31E
This article probably also applies to: VGN-FZ38M Yeap I bought it. I though that since it had an NVidia card and it was Centrino based etc i...
Memory efficient Brainfuck tables
Here is a nice way to implement an indexed table in Brainfuck , using only n+4 memory for n table cells. I will soon release a new version o...
No comments:
Post a Comment