Search Results

Search: Posts Made By: zulfi123786
Forum: AIX 01-07-2018
2,537
Posted By zulfi123786
well the actual reason of doing it this way was...
well the actual reason of doing it this way was because I do not know the day part of the date which is why the pattern matching :)
1,396
Posted By zulfi123786
Information on heredoc
Hi ,

I am using ksh on Aix 7.1 and found the below code in a script which is a bit confusing to me, any help will be appreciated

<<comments
put ${pathforfiles}/${ftpfilename}
put...
Forum: AIX 01-06-2018
2,537
Posted By zulfi123786
I am using ksh and for the variable, I hard coded...
I am using ksh and for the variable, I hard coded the value
yyyymm=20171210
Forum: AIX 01-06-2018
2,537
Posted By zulfi123786
Issue with wildcard in filename (AIX 7.1.0.0)
Hi,

This has been pestering me for quite a while, any help will be highly appreciated

The current directory has a file with below name

npidata_20050523-20171210.csv

The below wildcard...
814
Posted By zulfi123786
'@' in if [[ "$tgttblname" = @(MEMBER_1|MEMBER_2) ]]
Hi,

The '@' appears strange to me as I haven't seen it used in such form before

if [[ "$tgttblname" = @(MEMBER_1|MEMBER_2) ]]

May I have help in understand what it does and probable any...
3,730
Posted By zulfi123786
Finding Files only under a specific FileSystem
Hi,

I am using AIX and one of my file systems is getting filled up and I need to track with files are occupying more volume.

Filesystem GB blocks Free %Used Iused %Iused Mounted on...
1,850
Posted By zulfi123786
it's projectwork
it's projectwork
1,850
Posted By zulfi123786
Yes, the input expression has to be recognised...
Yes, the input expression has to be recognised and processed using expr. We are told that the expressions would be simple combinations of basic operators.

Thanks
Zulfi
1,850
Posted By zulfi123786
Thank you for your replies Below is a...
Thank you for your replies

Below is a sample Expression


UsrAppNO=(UsrCustGBLNo*2) + UsrCustRegNo + 99


Actually there is a common global code over which regional customizations...
1,850
Posted By zulfi123786
Get variables from expression
Hi,

I have a k-shell master script which reads variables that are globally set and this script is modified by users per their requirements and users define few other variables.

In the script...
1,560
Posted By zulfi123786
Thanks for the reply, filefound=0 ...
Thanks for the reply,


filefound=0

while [[ $filefound -eq 0 ]]
do

if [[ -f abc.dat ]]
then
mv abc.dat xyz.dat
filefound=1
fi

done


In the above if the file is not found...
1,560
Posted By zulfi123786
Loop without a delay
Hi,

I am trying to understand what would happen if ther is a loop without any delay like sleep statement, I feel that would add a lot of load onto the CPU. Trying to understand how the load is...
7,577
Posted By zulfi123786
Hi, In the above column 2,3,4 of the file...
Hi,

In the above column 2,3,4 of the file input.txt are key columns and I have to remove duplicates on these columns. Once that is done I need to make the script generic so that I will accept...
7,577
Posted By zulfi123786
Eval in awk
Hi

I am trying to remove duplicates on keys in a file and so far the below seems to work

sort -t\| -k2,4 input.txt| awk -F'|' '{if (NR==1) print $0} {x=$2 $3 $4} NR>1 {if ($2 $3 $4 != y) ...
10,223
Posted By zulfi123786
Understanding find -depth
I was looking at a code and stumbled over the option -depth of find command

After searching what -depth does I found the below:

-depth Process each directory's contents before the directory...
1,104
Posted By zulfi123786
Many Thanks for mentioning the reference :)
Many Thanks for mentioning the reference :)
1,104
Posted By zulfi123786
The above is actually creating the variable with...
The above is actually creating the variable with value 10 and the variable exists for only one time use. The second attempt to access the variable says it isn't defined (blank value)
1,104
Posted By zulfi123786
Significance of ':-' while accessing a variable
Hi

I was trying to understand what ':-' means when used with variables


echo ${x:-10}

if [ "${OSH_compileFlag:-}" = "1" ]


Thanks
4,111
Posted By zulfi123786
The result is same as cat on the file name, guess...
The result is same as cat on the file name, guess something is missing
4,111
Posted By zulfi123786
sum=0;while read n; do sum=`echo...
sum=0;while read n; do sum=`echo "scale=14;$sum+$n"| bc`; done < T; echo $sum

this works but the only point which holds me back is, the above should iterate for each record and might be time...
4,111
Posted By zulfi123786
awk sum giving incorrect value
cat T|awk -v format=$format '{ SUM += $1} END { printf format,SUM}'


the file T has below data


usghrt45tf:hrguat:/home/hrguat $ cat T
-1363000.00123456789
-95000.00789456123...
1,476
Posted By zulfi123786
Many thanks..... sorry for the blind post.........
Many thanks..... sorry for the blind post...... Just entered here ;)
1,476
Posted By zulfi123786
difference in the two test operators
could any one please help me understand the difference between double square bracket test operator and single square bracket test operator.

I have seen one difference with the below code but not...
1,255
Posted By zulfi123786
Extracting variable value from file
Hi All

i have created a file as below

cat > REJ_FILE_LIST.dat
CUST.DAT,$ABC/TEST.DAT|$ABC/TEST1.DAT|$ABC/TEST2.dat
Ctrl+d


in another script the variable is set as
...
Showing results 1 to 24 of 24

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