Search Results

Search: Posts Made By: TestKing
8,458
Posted By TestKing
What is the difference ../directory path and ./directory path in ksh?
What is the difference ../directory path and ./directory path in ksh?
12,633
Posted By TestKing
How to print out with equal spacing between columns?
For instance, my file contains the following content...

set -A array
set -A test
${array[0]}=1
${array[1]}=2
${array[2]}=3
${test[0]}="Boy"
${test[1]}="Girl"...
7,016
Posted By TestKing
Error with while loop ksh
while [[$a -ne 25]];do
first[$b]=${hat[$a]}
echo "${first[$b]}"
b=$((b+1))
a=$((a+5))
done


I'm trying to append values from the indicated index of one array...
7,623
Posted By TestKing
How to split the string value to an array?
Test1.txt

Tom is hot

Test.sh

filename="/directory/Test1.txt"
set - A store
while IFS= read value
do
awk '{split($value,store," ")}'
...
5,799
Posted By TestKing
How to call variables from a file to the scripting file?
Let say I have a file with variables (Test1.txt)
In Test1.txt file, it consists of

Tom is a boy
Jim is a dog


In the other scripting file (RunTest1.sh), I have

#!/bin/ksh
filename =...
4,979
Posted By TestKing
FIND and GREP syntax
I have a question to this command

find . -type f -name ".*txt" -exec grep "text" {}\.

The find command will locate a file name with the extension of txt once per round and find the word "text"...
5,127
Posted By TestKing
Adding log file
Like the script file...where sometimes it encounters error when executing and so the errors are reported to a log file.... My question is how do I add the directory of the log file to a script file?
5,127
Posted By TestKing
How do I add a log file path to a vi file to monitor all the changes made to the file?
I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt.
Is this expression

export PATH=$PATH:/home/test1.log

right to...
Showing results 1 to 8 of 8

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