Top "Ash" questions

A shell(ash) written by Kenneth Almquist and released to the comp.

What do $? $0 $1 $2 mean in shell script?

I often come across $? $0 $1 $2 etc.... in shell scripting, what I know is that $? returns the exit status of the last …

bash shell ash
does linux shell support list data structure?

this question is not the same as Does the shell support sets? i know lots of script language support list …

linux bash shell ash
How to add a new line in the bash string?

The new line \n is not taken account in the shell strings root@toto:~# str="aaa\nbbbb" root@toto:~# echo $…

linux bash shell sh ash
How does one reboot from an ash shell?

How does one reboot from an ash shell? I have an Ubuntu system that is currently bricked for some reason (…

busybox ash
How to reverse a list of words in a shell string?

I have a list of words in a string: str="SaaaaE SeeeeE SbbbbE SffffE SccccE" I want to reverse it …

linux shell awk sed ash
How to get /etc/profile to run automatically in Alpine / Docker

How can I get /etc/profile to run automatically when starting an Alpine Docker container interactively? I have added some …

docker sh ash alpine
All newlines are removed when saving cat output into a variable

I have the following file linux$ cat test.txt toto titi tete tata Saving the cat output into a variable …

linux bash shell ash
How to run a script in background (linux openwrt)?

I have this script: #!/bin/sh while [ true ] ; do urlfile=$( ls /root/wget/wget-download-link.txt | head -n 1 ) dir=$( cat /root/…

linux shell ash
Docker Alpine linux running 2 programs

I am trying to create docker image with alpine linux, which after run will create container with 2 running programs. This 2 (…

python docker alpine ash
How to separate fields with pipe character delimiter

I know this question has already been asked but no of the solution I've found worked for me! I have …

bash sed awk pipe ash