Search Results

Search: Posts Made By: alister
4,069
Posted By alister
Sorry. I misunderstood. Here's a different sh...
Sorry. I misunderstood. Here's a different sh solution that should adhere to your requirements:
#!/bin/sh

# l: letter
# w: word

pick() {
local l
if [ $# -gt 0 ]; then
for...
4,069
Posted By alister
Tested with ksh93, pdksh (mostly ksh88), and...
Tested with ksh93, pdksh (mostly ksh88), and bash.
#!/bin/sh

# b: brace expansion term
# e: eval-echo args
# l: a letter from "$@"

b=$1
e=$b
shift
for l; do
b=$b,$l
e="$e{$b}"...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy