Search Results

Search: Posts Made By: abhilashnair
4,374
Posted By abhilashnair
Delete It is against our forum rules you...
Delete

It is against our forum rules you agreed to remove your posts, for that you have been banned!



After 13 years, not once you did the effort of showing an attempt in finding a...
4,374
Posted By abhilashnair
Script for creating Control file in UNIX
Delete

---- Original post, restored by mod after being deleted by abhilashnair ----
I have a requirement where, I need to create a control file which will have 3 columns in the header row as...
6,367
Posted By abhilashnair
The above code worked perfectly.
The above code worked perfectly.
6,367
Posted By abhilashnair
(|) will never appear inside a quoted field. it...
(|) will never appear inside a quoted field. it is the delimiter, so acts like a separator between 2 columns
6,367
Posted By abhilashnair
I tried the code, it is removing the consecutive...
I tried the code, it is removing the consecutive quotes but it is also removing the empty strings, which I don't want because that is a perfectly valid value
6,367
Posted By abhilashnair
sed command to replace consecutive double quotes
I need to replace consecutive double quotes in a csv file, the data in the file is enclosed in double quotes but there are some places where the quotes are repeating
Example is below

Incoming...
1,431
Posted By abhilashnair
sed Command Output
I want to know how this command output will be

sed 's/^"\(.*\)"$/\1/' <filename>
1,924
Posted By abhilashnair
There are no leading spaces in the script. Must...
There are no leading spaces in the script. Must have come when I pasted the code into this thread

I want my new script to do the opposite of what the current script is doing

I need it to Not...
1,924
Posted By abhilashnair
AIX ksh Oracle Access using sqlplus within...
AIX
ksh
Oracle
Access using sqlplus within script
Database field contains file pattern not file name and in another column it contains absolute path

age of file to be determined by...
1,924
Posted By abhilashnair
Parsing through list of files
I have a requirement where I need parse through files in a directory which have a specific pattern and then check whether the file has been processed or not. The exit condition is any file that has...
4,708
Posted By abhilashnair
Removing Header and Trailer record of a EBCDIC file
I have a EBCDIC multi layout file which has a header record which is 21 bytes, The Detail records are 2427 bytes long and the trailer record is 9 bytes long.

Is there a command to remove the...
2,124
Posted By abhilashnair
awk '{$0=$0 ~ /\|\r\n$/?$0:$0"|\r\n"} 1'...
awk '{$0=$0 ~ /\|\r\n$/?$0:$0"|\r\n"} 1' filename>output

worked for me
2,124
Posted By abhilashnair
Appending CRLF to end of record
I need to append |\r\n (a pipe character and CRLF) at end of each record in Unix to all records where they are not already present.

So first check for the presence of |\r\n and if absent append it...
3,372
Posted By abhilashnair
I am on AIX system and the file has been pushed...
I am on AIX system and the file has been pushed to this from Mainframe

Please advise how can I proceed in this case
3,372
Posted By abhilashnair
Eliminate Header and footer from EBCDIC file
Is there any command to eliminate Header and footer from EBCDIC file
1,498
Posted By abhilashnair
Handling embedded double quotes within column data
I have a text file where each field is enclosed in double quotes and separated by a comma.
But in certain rows we have embedded double quotes within column data

For e.g

"""TRUSPICE CENTRE"" ...
4,499
Posted By abhilashnair
Thanks, the awk command worked for me.
Thanks, the awk command worked for me.
4,499
Posted By abhilashnair
Appending | (pipe) to end of each line which does not have it
I have a text file in which all records end with pipe character and newline, but a few do not have a pipe at the end.

Something like this

1|John|32|US|
2|Matt|35|UK
3|Rex|36|EU|


So in...
2,034
Posted By abhilashnair
Sample records 1 1 InPayANZ ...
Sample records

1 1 InPayANZ 12.0000 NZD NOW 011179099848025

2 2 InPayNonANZ 25.0000 NZD ...
2,034
Posted By abhilashnair
awk command to omit trailer record in a file
I am trying to omit the trailer record in a variable width file

I tried using awk 'NR >1 { print prev } { prev = $0 }' filename

The above command is giving output but somehow it is trimming...
3,234
Posted By abhilashnair
It is not working even when I give actual email...
It is not working even when I give actual email ids in the place of variables
3,234
Posted By abhilashnair
Sendmail script not working
I am facing a peculiar problem in AIX 6.1
I can execute sendmail command using the following script

sendmail -f sender -v recepient
Body of email
^dThe command executes successfully and mail is...
Forum: UNIX and Linux Applications 03-06-2008
10,424
Posted By abhilashnair
Html web page to Unix Connectivity
Hi All,
I need a basic overview of connecting a HTML web page to Unix
I will give a brief of my exact requirement.
There will be a front end HTML page - a web page which will have certain buttons....
51,154
Posted By abhilashnair
It works. But it also returns many other lines...
It works. But it also returns many other lines not at all related to the filename which I am giving as input
for eg: if i give command as find /home -name abc.dat it returns the output as given...
51,154
Posted By abhilashnair
command to find the path of a file
What is the command to find the path of a file if we know the file name and the root directory where the file resides..

For eg. if a file abc.dat resides in /home/mydir/myfiles/. I am looking for...
Showing results 1 to 25 of 35

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