Search Results

Search: Posts Made By: gwrm
1,171
Posted By gwrm
Append lines in a file
Hi All,
I have a file separated by , and each line end with ".If the line doesnt end with " then i need to join the current line and the next one and put them in another file

a, b, c,d"...
2,043
Posted By gwrm
i'm directing output to another file will that be...
i'm directing output to another file will that be problem
tail +1 test.csv|sed '/[^"]$/N; s/\n/ /'>test2.csv
2,043
Posted By gwrm
not only that, if you see the output 2nd and 3rd...
not only that, if you see the output 2nd and 3rd line are merged

Name comment value
"A","EMP","58.s
; NO EMP"
"B","EMP","56.s; NO EMPL"
"C","EMP","54.s
; NO EMP"

Output got is
Name...
2,043
Posted By gwrm
Attaching you correct file Name comment...
Attaching you correct file

Name comment value
"A","EMP","58.s
; NO EMP"
"B","EMP","56.s; NO EMPL"
"C","EMP","54.s
; NO EMP"
output to be
Name comment value
"A","EMP","58.s; NO EMP"...
2,043
Posted By gwrm
A EMP 58 ; NO EMP" NO EMPL" TXN 58 ; NO...
A EMP 58
; NO EMP"
NO EMPL"
TXN 58
; NO EMPL"
output to be
A EMP 58 ; NO EMP"
NO EMPL" -- No change as it ends with double quotes
TXN 58 ; NO EMPL"
2,662
Posted By gwrm
remove enter
Hi All,

I have a file , delimited by |
Last column of the file has a extra enter causing error in my program
Eg:
firstworld <enter>; NO EMP
i want data to be firstworld; NO EMP

Is there a...
2,043
Posted By gwrm
thanks Michael Will that be possible to skip...
thanks Michael
Will that be possible to skip the first line
Because first line will be header

---------- Post updated at 06:15 AM ---------- Previous update was at 06:09 AM ----------

sed...
2,043
Posted By gwrm
if the end of the line is not " then we need to...
if the end of the line is not " then we need to append the current line and the next line

---------- Post updated at 04:59 AM ---------- Previous update was at 04:57 AM ----------

first line ...
2,043
Posted By gwrm
CSV file issue
Hi All,
We have a csv file.
We need to read end character , if the end character is not " we need to append that line and the next one
Kindly help me to write a script

Thanks
3,866
Posted By gwrm
Listener port
Hi All,

I'm installation a server
we have client -server architecture
I need to configure a port for client to communicate with the server
and server to communicate with the clients
Pls let...
2,321
Posted By gwrm
thanks franklin
thanks franklin
2,172
Posted By gwrm
List files in a directory
Hi Experts,
I need to list the files in a directory which have more than one lines
Please help

Thanks
2,321
Posted By gwrm
List the files in a directory
Hi Experts,
I need to list the files in a directory which have more than one lines
All the files are csv format
Please help

Thanks
6,897
Posted By gwrm
bsnithin thanks for the code i need to send the...
bsnithin thanks for the code
i need to send the content of the non empty file as attachment
6,897
Posted By gwrm
thanks for the response but again this will...
thanks for the response
but again this will send separate mail for each of the non empty files
i need to send one consolidated mail with non empty files as attachment
6,897
Posted By gwrm
Empty Directory Check
Hi All,
I have a requirement to check all the files in a directory and mail non empty files
Files are in csv format , i need to skip header while checking
pls help

Thanks
2,254
Posted By gwrm
thanks a lot
thanks a lot
2,254
Posted By gwrm
Read Csv file
Hi All,
I need to check if a csv file is empty, leaving the first line as the first line is header
pls help

Thanks
4,880
Posted By gwrm
thanks for the response but i'm not able to...
thanks for the response
but i'm not able to introduce new line
4,880
Posted By gwrm
Input:- comes from a sql statement, so i cannot...
Input:- comes from a sql statement, so i cannot predict the number of rows, but the no of column is constant (4)
eg:

1, sun, 2, 3
2, earth,3, 4
3, moon, 4, 5
Output should be:
********...
4,880
Posted By gwrm
thanks for the response but again i will have...
thanks for the response
but again i will have no of rows as dynamic
4,880
Posted By gwrm
Comma delimited file
Hi All,
I have output of sql saved in comma separated file.
Now i need to read line by line this file
and assign word to a unix variable for further processing

Eg:

Test file
world, 1, 3,...
4,422
Posted By gwrm
uuencode without attachment
Hi All,
I'm using uuencode to send out mail from unix to lotus notes,but i dont have any attachment to send out, I'm getting this message in the body of the mail
"Usage: uuencode [ source ]...
46,259
Posted By gwrm
Hi All, i need a script to select record from...
Hi All,
i need a script to select record from oracle and send mail
there are multiple records in the table i need to read row by row and send mail
pls help
4,019
Posted By gwrm
Hi scottn Thanks for the reply the script i...
Hi scottn
Thanks for the reply
the script i posted already has closing pling !, I'm not so sure wat you are refering to

lcd localdir
cd /remote dir
mget *.*
close
bye
!

...
Showing results 1 to 25 of 26

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