![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed query | gopsman | Shell Programming and Scripting | 3 | 05-14-2007 05:14 AM |
| & in SQL query | Lindarella | Shell Programming and Scripting | 3 | 10-09-2006 01:43 PM |
| Query In awk | raguramtgr | UNIX for Dummies Questions & Answers | 1 | 08-27-2004 08:00 AM |
| RPM Query | silvaman | UNIX for Advanced & Expert Users | 1 | 08-15-2003 04:56 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
query
I have converted data written on excel sheet in unix through shell & perl prg
now the problem is I want that if starting columns of the xls sheet is Blank than when data is converted into unix then it should appear with this '|' sign. but it appearing like this: hfgg|tytt| but I want like this: ||hfgg|tytt| two pipe sign for two blank columns in excel sheet. Last edited by akash; 12-04-2007 at 04:28 AM. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Probably when you're doing the conversion you can specify pattern to be added, logic rule like : in the beginning of every line insert " | "
|
|
#3
|
|||
|
|||
|
an example
Quote:
Simple use awk to create excel files...as awk '{print $1","$2","$3}' < /tmp/file.txt > /tmp/file.csv No such delimiters would come ! Thanks !! |
|||
| Google The UNIX and Linux Forums |