DaemonForums  

Go Back   DaemonForums > Miscellaneous > Off-Topic

Off-Topic Everything else.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th April 2021
bsdun bsdun is offline
Real Name: Steve
Fdisk Soldier
 
Join Date: Feb 2020
Posts: 48
Default One terse ksh reference

Hi.
I'm not sure what forum this belongs, so I put in into Off-Topic.
There is a very terse reference on ksh shell used in OpenBSD on codeberg website. It may be of use to advanced ksh users.

Here's the link.
Reply With Quote
  #2   (View Single Post)  
Old 26th April 2021
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, tornado,puts the fear of God in you-Texas
Posts: 335
Default

Thanks for the link,,,nice
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2021
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Default

This reference is so "terse", I can barely understand anything.
In the while read section the code
Code:
funktion func {
while read ...
} < file
How this works und where it can be used?
Reply With Quote
  #4   (View Single Post)  
Old 22nd May 2021
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Code:
$ cat show_it.sh                                                                         
#!/bin/sh

function show {
   while read DATA
   do
     echo "#===$DATA====!"
   done
} <test-data.txt

show ;


$ cat test-data.txt                                                                      
a
b
c
1
2
3

$ ./show_it.sh                                                                           
#===a====!
#===b====!
#===c====!
#===1====!
#===2====!
#===3====!
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Reply

Tags
ksh reference

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
libc reference manual attilio Programming 4 29th December 2019 08:35 AM
Zlib reference in wip branch darktrym NetBSD Package System (pkgsrc) 1 8th January 2017 08:19 PM
undefined reference to `KERNEL_PROC_UNLOCK' sw2wolf OpenBSD Packages and Ports 6 27th March 2012 06:40 AM
interface has inet6 reference dbach OpenBSD General 1 19th August 2011 09:37 PM
Undefined reference to `xpt_bus_deregister' FreeBee FreeBSD Installation and Upgrading 2 6th January 2010 03:59 PM


All times are GMT. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick