Search Results

Search: Posts Made By: vikanna
12,501
Posted By vikanna
Yes its working. Thanks a lot :)
Yes its working.
Thanks a lot :)
12,501
Posted By vikanna
ok. sample.txt attached. ...
ok.

sample.txt attached.


Maximum(LOGONDATE) 2011-06-15
Minimum(LOGONDATE) 2011-05-31
Maximum(EXT_TS) 2011-06-15 07:41:14
Minimum(EXT_TS) 2011-05-31 10:16:49
12,501
Posted By vikanna
To get max/min Date/Timestamp from a file
I want to get maximum/minimum date/timestamp from a data file ?

Sample Input File
=============
rec#,order_dt,ext_ts
1,2010-12-01,2010-12-01 17:55:23.222222
2,2011-11-05,2010-12-01...
16,796
Posted By vikanna
Thanks a lot. Its working now. :)
Thanks a lot.
Its working now. :)
16,796
Posted By vikanna
if i use if [ $delimiter_char == "TAB" ] ...
if i use if [ $delimiter_char == "TAB" ]

./get_col_lengths.sh CUSTOMER.dat 'TAB'
TAB
Inside the TAB condition
No. of Records in CUSTOMER.dat : 200
No. of Columns in CUSTOMER.dat : 1

here is...
16,796
Posted By vikanna
echo $SHELL /bin/bash Code 1: echo...
echo $SHELL
/bin/bash

Code 1:
echo $delimiter_char
if [ $delimiter_char eq "TAB" ]
then
echo "Inside the TAB condition"
col_cnt=`echo $header_line | awk -F'/t' '{print...
16,796
Posted By vikanna
No dear, "if" is working, tried that already ...
No dear, "if" is working, tried that already
still i'm putting output here

./get_col_lengths.sh CUSTOMER.dat 'TAB'
No. of Records in CUSTOMER.dat : 200
No. of Columns in CUSTOMER.dat : 1
16,796
Posted By vikanna
sorry for the typo mistake. here is the correct...
sorry for the typo mistake.
here is the correct code which is not working.

data_file=$1
delimiter_char=$2
header_line=`cat $data_file | head -1`
if [ $delimiter_char = "TAB" ]
then
...
16,796
Posted By vikanna
this too is not working :(
this too is not working :(
16,796
Posted By vikanna
Problem while counting number of fields in TAB delimited file
I'm facing a strange problem, please help me out.
Here we go.

I want to count number of fields in particular file.
filename and delimiter character will be passed through parameter.

On...
1,728
Posted By vikanna
Mail Setup on Linux
Hi Guys,

I need to send mail from linux to my outlook email id.
mailx command is not working.

I guess, some configuration is required.
Don't know what exactly needs to be done.

Please...
Showing results 1 to 11 of 11

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