Split file into multiple when special char met

I have a main file as following : /* ------------- AAAAAAAA ------------- */ some lines here /* ------------- BBBBBBBB ------------- */ more things /* ------------- CCCCCCCC ------------- */ there a few more lines My final goal is to create a fi...
more »

2017-09-27 10:09 (4) Answers

Name a function as an environment command

I wonder if there is a way to create a script as following : #!/bin/ksh export() { echo "We're in the local function" } export The main issue is that exportis an environment command for setting value of a variable or an environment variable, so wh...
more »

2017-09-20 10:09 (1) Answers

IFS in .ksh acting strangly

Can someone please explain why my IFS statement is replacing my characters in my output file? What do I need to change in order to solve it? I want to read an input file line by line (record by record) and the IFS to be ignored completely, but I am n...
more »

2016-07-28 15:07 (1) Answers