Search Results

Search: Posts Made By: suparnbector
7,535
Posted By suparnbector
Extracting data from text file based on configuration set in config file
Hi Klashxx ,

Thanx for the solution , but the output is not the way i wanted

output iam looking for is

a.dat file sohuld contain all records in the range defined for SMS record type

so ...
7,535
Posted By suparnbector
Extracting data from text file based on configuration set in config file
Hi ,

a:) i have configuration file with pattren
<Range start no>,<Range end no>,<type of records to be extracted from the data file>,<name of the file to store output>

eg:

myfile.confg...
Forum: AIX 06-11-2007
8,055
Posted By suparnbector
Try this ....
1 I dont have AIX but on HP i use echo $? to see the status of last command.
0 means success
>0 means failure

2 Subtract Date: Hope you can find some help from this link.
Date Calc....
7,390
Posted By suparnbector
Try this...
This is what you want

myfunc()
{
echo "read var1 "$1
echo "read var1 "$2
}

myfunc 1 2
41,600
Posted By suparnbector
try this
>largefile
Forum: HP-UX 05-30-2007
21,325
Posted By suparnbector
Try this ....
hh=`date '+%H'`
currenthour=`expr ${hh} - 0`
onehourback=`expr ${hh} - 1`
twohoursback=`expr ${hh} - 2`
echo $currenthour
if [ $currenthour -eq 0 ]
then
echo "it is Zero"
exit
echo "i...
21,181
Posted By suparnbector
Try this..should work
who | awk '{print $1}'|uniq
28,503
Posted By suparnbector
Try This...
alias fnm='ls -ltr | awk {print $9}'
1,892
Posted By suparnbector
Q
which flavour of unix you are using and which shell???

i tried same command

output

echo `date +%y%m%d`
070530
8,856
Posted By suparnbector
Another sol.
you can use gzip .. this command use better compression algo to zip file ..
28,503
Posted By suparnbector
Need More details...
Please provide the output of psme command...
4,676
Posted By suparnbector
try this
echo "A1234" | cut -c 2-

echo "A1234" | cut -c 0-1
9,040
Posted By suparnbector
try this ....
x=+00002780.96
num=$(( ${x} ))
echo $num
Showing results 1 to 13 of 13

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