Search Results

Search: Posts Made By: dsshishya
1,168
Posted By dsshishya
Date compare Issue
I have a problem, I need to compare the date (only the date part) created on a file to the current system date (only the date part) and if they are equal Then set a variable value to Zero else set it...
3,075
Posted By dsshishya
Increment Date in a Specific Format
Hi,

This may sound a Basic, but please help

I Hava a date in the Given Format

yyyy_mm_dd
Start_date=2008_07_09 (This is a Fixed Date)

I need to Increment this Date in a For loop until it...
1,883
Posted By dsshishya
Thankyou all......its working
Thankyou all......its working
1,883
Posted By dsshishya
Issue with File Renaming
I am trying to perform some validations on the source files. the script has file name pattern as an argument.The Input file has Single quotes in the filename . I want to remove those single quotes...
12,269
Posted By dsshishya
Unable to resolve will open a differnt thread...
Unable to resolve will open a differnt thread with better Explanation.Closing this thread
12,269
Posted By dsshishya
the code is giving a syntax error 0403-057...
the code is giving a syntax error
0403-057 Syntax error at line 120 : `'' is not matched.

and when i closed it with a " it says
"${FILE//\'/}": 0403-011 The specified substitution is not valid...
12,269
Posted By dsshishya
all the three codes still want me to give the...
all the three codes still want me to give the file name with single quotes as an argument ......is there anyway that i can do it with out giving the single quotes in the argument
12,269
Posted By dsshishya
Its giving the below error Usage: mv [-I]...
Its giving the below error

Usage: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src target
or: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src1 ... srcN directory
12,269
Posted By dsshishya
Problem renaming a file with single quotes
Hi,

I am trying to create a script which validates the incoming source files. The script has File name Pattern as Argument. The First part of the script validates if there are any files available...
3,127
Posted By dsshishya
I got it....Below is the code sed -e ':a' -e...
I got it....Below is the code

sed -e ':a' -e 's/\("[^"][^"]*\),\([^"][^"]*"\)/\1|\2/;ta' $FILE_NAME > Output_$FILE_NAME
3,127
Posted By dsshishya
But i have 2 fields with double quotes.....
But i have 2 fields with double quotes.....
3,127
Posted By dsshishya
I have the column names like this ...
I have the column names like this
Type,Number,Number,DOB,"Name, Last","Name, First",Gender,SubscriberID,Sub_Sequence Number,Member Number,Corporate Entity Code

I want to change the Column names...
3,127
Posted By dsshishya
I want it to be counted as one.... From that...
I want it to be counted as one....
From that code i am getting the count of Columns as 22 where as it should be 20. I want to know if there is any way that we can consider the value with in the...
3,127
Posted By dsshishya
Column name Problem
Hi,

I have a Comma seperated file of 20 columns, 2 of the column has names as "Name, Last " and "Name, First " . I want to count the no of Columns. to see if we recieved all the 20 columns or...
4,426
Posted By dsshishya
Thanks
Thanks Pludi....it works..... :b:
4,426
Posted By dsshishya
Split a file
Hi,


I want to split a file into 2 Files. The First 2 lines should be the First File with a Prefix to it and the rest of the file should be the Second with a Prefix.
When i am using the below...
18,487
Posted By dsshishya
Thanks one and all....It worked Below is the...
Thanks one and all....It worked Below is the final script which worked

n=0
for i in $i
do
n=`expr $n + 1`
nawk -v num="$n" '{
print $0","num
}' $i > ${i}.t
rm $i
mv...
18,487
Posted By dsshishya
Thanks Summer cherry, it worked But a small...
Thanks Summer cherry, it worked But a small change is required i want to append the Number with a comma (,) Can you Please help me on this
18,487
Posted By dsshishya
Awk is allowed But i need to read from multiple...
Awk is allowed But i need to read from multiple files append each line of file with a Number and then write those record to a file, what you gave is writes to a multiple files
18,487
Posted By dsshishya
This will work if i am working with a single...
This will work if i am working with a single file, But i have multiple files and the variable value should increment for each file isn't it?
18,487
Posted By dsshishya
I am getting the header and detail records in the...
I am getting the header and detail records in the same file. they dont have a common key. what i am supposed to do is to break each file depending on a fixed header rows and then load them to a...
3,472
Posted By dsshishya
How to append a Value to all the rows in a file
Hi,

We have Multiple source files which has some data, I need a K shell script which will append number '1' as the last character to all the lines of the first file and then increments the value...
18,487
Posted By dsshishya
How to Append a Value to each line of the file
Hi,

We have Multiple source files which has some data, I need a K shell script which will append number '1' as the last character to all the lines of the first file and then increments the value...
Showing results 1 to 23 of 23

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