ksh
ksh not evaluating variable within backticks
This one has me stumped. #!/bin/ksh AWKSCRIPT=\'END { print \"all done\"; }\' OUTPUT=`echo hello world | awk \'$AWKSCRIPT\'`[详细]
2023-01-25 07:19 分类:问答get the table names from file using UNIX Script
I am having a sample file as given below. This is an SQL Loader control file: LOAD DATA APPEND INTO TABLE XXWIN_TMP_LOADER_TAB[详细]
2023-01-25 06:38 分类:问答Backslashes in Kornshell
I was looking over some ksh code and came across a line I didn\'t think would work.Upon testing the code, it did work, but I am not sure why.[详细]
2023-01-24 19:50 分类:问答KSH check if string starts with substring
I need to check if the variable has value of string which starts with specified substring. In Python it would be something like this:[详细]
2023-01-22 22:47 分类:问答test command in KornShell (ksh)
I have a question on the test command in the KornShell (ksh). I know -ne is for comparing integers and!= is for comparing strings. How will the test command behave if one argument is a string and the[详细]
2023-01-22 09:25 分类:问答UNIX, Assign value to a variable in C or KornShell (ksh)
When I use bash to run the following code, it will assign the value 5 to the var1. var1=$(awk \'$1>$3{ print \"5\"}\' newfile2)[详细]
2023-01-20 12:26 分类:问答Prompt not displaying Hostname for AIX's KSH
Similar to question 1171663, AIX appears to not have the $HOSTNAME option available.$hname and $hostname are also non-existent.Other than doing the following within .profile -[详细]
2023-01-19 03:52 分类:问答How to simulate key press event?
开发者_如何学GoHow to simulate key press event with ksh|bash script?Try xdotool: http://www.semicomplete.com/projects/xdotool/I don\'t know why xdotool wasn\'t compatible with SCO ; but maybe these ar[详细]
2023-01-18 09:50 分类:问答Shell Script (bash/ksh): 20 seconds to read a variable
I need to wait for an input for 20 seconds, after that myscript should continue the execution. I\'ve tried using read -t20 var however this works o开发者_开发百科nly on bash. I\'m using ksh on Solaris[详细]
2023-01-17 16:04 分类:问答Check if file exists and whether it contains a specific string
I want to check if file2.sh exists and also if a specific word, poet is part of the file. I use grep to create the variable used_var.[详细]
2023-01-17 06:42 分类:问答
加载中,请稍侯......