Search Results

Search: Posts Made By: dnat
1,771
Posted By dnat
Remove line feed in data
Please use code tags for sample data


Hi
I have a file where there are line feeds in the data. I am not able to read the file from an application. I exported this data from Access database and...
1,292
Posted By dnat
Hi, I am using Korn shell AIX ver 7.1 I...
Hi,

I am using Korn shell AIX ver 7.1

I tried this , but its giving me an error : date: illegal option -- d

date -d "$d -$(date -d $d +2) days" +"%m-%d-%Y"

If FILE_NAME_20180410 then I...
1,292
Posted By dnat
Getting a Date value based on day
Hi,

I have a scenario like this.

I get a file on anyday of the week, so the file name is like this.
FILE_NAME_YYYYMMDD
I want to get the tuesday date before this day.

For example ...
1,953
Posted By dnat
Thanks!! both of them worked!!
Thanks!! both of them worked!!
1,953
Posted By dnat
Removing consecutive double quotes
Hi I have a .csv file and when opened in notepad looks like this


gggg,nnnn,"last,first","llll""",nnn

So, Here I would like the ouput as below

gggg,nnnn,"last,first","llll",nnn

i.e...
1,649
Posted By dnat
Thank you!!. This gives me what I want, but can...
Thank you!!. This gives me what I want, but can you tell me how this works?
1,649
Posted By dnat
I tried this, but its giving the same output,...
I tried this, but its giving the same output, only this is when I open through vi there is no ^M character at the end..
1,649
Posted By dnat
How to remove just LF from file?
I have a file with the data which looks like this

I open in Notepad++ and see the special characters

1111,FILE, TEST,787CR/LF
3333,FILE,78LF
7CR/LF

This is csv file transferred to unix....
9,310
Posted By dnat
Sftp from UNIX to mainframe
Hi,

I have many scripts where i have used sftp for file transfer from unix box to unix box.. Now that we have to sftp files from unix to mainframe, i would like to know if that is possible.

I...
1,997
Posted By dnat
mail command
Hi All,

I have a monitoring script in unix and any error messages it gives is stored as a mail in the unix box. Like wise it has accumulated lot of emails when i type mail command.

I have few...
2,575
Posted By dnat
Hi, thanks for your response, can you send me a...
Hi, thanks for your response, can you send me a sample script.

I am just using the shell script(ksh) no other language.
2,575
Posted By dnat
restart logic in a script
Hi
I have a script as follows

Function func0
<Set of validations done>
Function Func1
<Set of commands and some of the variables set>
Function Func2
<Set of commands and some of the...
16,313
Posted By dnat
File A contains a b c d File b...
File A contains
a
b
c
d

File b contains
b
c
a
d

Now i want to compare(cmp or diff) these two files after sorting. Ideally i should get the result that they are same.

---------- Post...
16,313
Posted By dnat
sort and compare files
Hi,

I have around 14-15 files and i want to sort all the files and then compare. I dont want to sort them and store in a different file and then compare. I want to compare two files at a time. Is...
14,741
Posted By dnat
split and rename the file
Hi All,

I have a requirement .I want to split a file and the split files should have certain names.

Currently when i use the split command
split -1000 testdata testdata_
Then the output is ...
6,212
Posted By dnat
In a nutshell. i want to cut the characters...
In a nutshell.

i want to cut the characters 3-5 from the file, change it and insert the changed value in the position 3-5.
6,212
Posted By dnat
thank you..but can you tell me how i can mention...
thank you..but can you tell me how i can mention the characters 3-5. i have just given examples here and my main data is something different.
6,212
Posted By dnat
wher are we specifying the character numbers as...
wher are we specifying the character numbers as 3-5
2,235
Posted By dnat
sorry there was a mistake:- it should be:- ...
sorry there was a mistake:-

it should be:-

if i have 5 files i want to compare the chatacters 45-58 of the last line of the first file with the same characters of the first line of the second...
2,235
Posted By dnat
loop and check
Hi,

We are doing a process manually and i am trying to automate it.

This is the process.

We have a set of files in the directory /temp/d1. the number of files are dynamic.

For ex: if i...
6,212
Posted By dnat
replace characters in a file
Hi,

I have a file in which i want to replace the charaters from position 3-5 with a particular string for the first line.

For ex

The file contains

abcdefghij
jkdsflsfkdk
908090900

i...
2,231
Posted By dnat
thanks you so much..it works now.
thanks you so much..it works now.
2,231
Posted By dnat
ok, i think it works like this. if the file...
ok, i think it works like this.

if the file has 27 records

the last 9 records are stored in the first split file
then 10-18 records are stored in the second split file
then 1-9 records are...
2,231
Posted By dnat
hi, i did that, but the sort order is not...
hi,

i did that, but the sort order is not maintained in the split files
2,231
Posted By dnat
splitting the files
Hi,

I have some files with 2 million odd records which i need to split into chunks of 0.5 millions. I have the file sorted with a key column in order. The same key value can appear as 4 or 5...
Showing results 1 to 25 of 50

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