TransWikia.com

awk on unix AS/400 (Qshell)

Unix & Linux Asked on January 28, 2021

In linux, I can do this

echo "hello" > a.txt
awk 'sub("l", "x" )' a.txt
hexlo

But if I do it on Qshell, I get:

 echo "hello" > a.txt
 awk 'sub("l", "x" )' a.txt
 awk: 0602-562 Field $($   

I have no idea of what’s going on, cannot find much about awk on qshell online. Please help…

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP