Hot answers tagged ksh
awk is a better tool for comparing columns of files. See, for example, the answer to: compare two columns of different files and print if it matches -- there are similar answers out there for printing lines for matching columns. Since you want to print lines that don't match, we can create an awk command that prints the lines in file2 for which column 2 has ...
SCRIPT_1="ksh -x script1.sh & bg_pid=$!; ksh -x script2.sh; wait $bg_pid"; SCRIPT_2="ksh -x script3.sh & bg_pid=$!; ksh -x script4.sh; wait $bg_pid"; eval $SCRIPT_1; sleep 20s; eval $SCRIPT_2;
Since it looks like you don't have the ability to customize your .profile but you can write to /tmp then you could do the following: Put all your customizations into a shell script (e.g. $HOME/myCustomizations.sh) on your local server. Something like this: alias ls='ls -laht' export AN_ENVIRONMENTAL_VAR_I_NEED_SET=VALUE scp $HOME/myCustomizations.sh ...
There is an alternative for this question. First set vi mode for ksh: $ set -o vi After, you can use the Tab key this way. Example: You want complete the next path: $ cd /usr/local/s Type Tab key twice and You will see this: $ cd /usr/local/s 1) sbin/ 2) share/ 3) src/ Assuming you want to option 2 (/usr/local/share/ folder), type 2 Tab (2 key ...
Only top voted, non community-wiki answers of a minimum length are eligible