Search Results

Search: Posts Made By: Roy987
10,459
Posted By Scrutinizer
LOL, I meant to say arrays.. Corrected in post. ...
LOL, I meant to say arrays.. Corrected in post.
On Ubuntu ksh is the real ksh, and I think on most modern Linux distributions the default ksh has become ksh93.
1,790
Posted By michaelrozar17
Command cut would do the same job echo $str |...
Command cut would do the same job
echo $str | cut -d'|' -f1 # try -f2 or -f3
10,459
Posted By jim mcnamara
/bin/sh on ubuntu is always bash. Unless you...
/bin/sh on ubuntu is always bash. Unless you opted to use another POSIX compliant shell on install.

Does ls -l /bin/sh /bin/bash /usr/bin/bash
echo $SHELL
provide any enlightenment?
104,048
Posted By gary_w
Yes I believe the Bourne shell (sh) does not...
Yes I believe the Bourne shell (sh) does not support arrays. Are you able to run my complete example? Make sure to include the first line, it tells whatever your login shell is to use the korn shell...
41,669
Posted By agama
The man page for history says that using a ...
The man page for history says that using a negative number as the first parameter on the command line (e.g. -1000) will print the most recent (1000 in this example) lines. This isn't working with my...
2,057
Posted By Chubler_XL
Here is an example: # alias et='echo test' ...
Here is an example:

# alias et='echo test'
# function doit {
> et
> }
# doit
test
# alias et='echo done'
# doit
test
# unalias et
# doit
test

See how changing the "et" alias makes...
2,057
Posted By agama
The shell reads small chunks of the script which...
The shell reads small chunks of the script which might be a single line from the file or might be a group of lines (a while or for loop is read all at once). As the shell reads these chunks the...
Showing results 1 to 7 of 7

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