Sponsored Content
Top Forums Shell Programming and Scripting Filtering symbols from contents Post 302253194 by ajilesh on Friday 31st of October 2008 06:53:12 AM
Old 10-31-2008
Filtering symbols from contents

Hi,

Any one of you guys can you help me out to filter all "," (single comma) from the below attached contents in a file.

sportiva:root:/home/users/thayata/test # cat sample2.csv
Heading,Sub Heading,,Detail
Server details,Deployment environment:,,Standard Datacentre DC1
,Chassis Type:,,P590
,Chassis Serial No:,,8395b5d
,Floor Tile Ref:,,Hall 2 H59-60/V13
,LPAR Name:,,inswass01
,LPAR Type:,,Type 3
,Units of type in LPAR:,,1 units of Type 3
,CPU:,,Dedicated or Shared Pool = Shared Pool
,(refer to the current Midrange Catalogue),,Capped or Uncapped = Uncapped
,,,min: 0.5 des: 0.75 max: 1
,,,weight: 180
,Virtual Cpu (2:1),,min: 1 des: 2 max: 2
,RAM,,min: 4 des: 6 max: 8
,Boot Disks Internal SCSI,,SCSI Adapter Slot and two disks: N/A
,Boot Disks - VIO,,Mirror 1 Serial No: N/A
,,,Mirror 2 Serial No: N/A
,Dedicated Network Cards,,N/A
,Dedicated Fibre Cards,,N/A
VIO (if reqd),VIO Server 1- Name:,,5b5dv1b
,VIO Server 2- Name:,,5b5dv2b
Network Details,NU General Access LAN,Dedicated,External VLAN = N/A
,,,GEL2 /GEL 3 = N/A
,,,I/O Drawer Slot IDs: N/A
,,,Etherchannel required: N/A
,,,Bandwidth: N/A
,,VIO,Hyperviser internal VLAN: VLAN100
,,,External VLAN = N/A
,,,GEL2 /GEL 3 = GEL3
,Midrange Admin LAN,Dedicated,External VLAN = N/A
,,,I/O Drawer Slot IDs: N/A
,,,Bandwidth: N/A
,,VIO,Hyperviser internal VLAN = VLAN110
,,,External VLAN = N/A
,HMC/RMC LAN,Dedicated,External VLAN = N/A
,,,I/O Drawer Slot IDs: N/A
,,,Bandwidth: N/A
,,VIO,Hyperviser internal VLAN = VLAN120
,,,External VLAN = N/A
,Other LAN (dedicated):,Dedicated,External VLAN = N/A
,NOTE: VCS heartbeats are specified in the VCS build table and not here.,,I/O Drawer Slot IDs: N/A
,,,Bandwidth: N/A
,,VIO,Hyperviser internal VLAN = N/A
,,,External VLAN = N/A
sportiva:root:/home/users/thayata/test #

I would like to remove all single qoutes( , ) from contents of the file sample2.csv mentioned above.

Regards,
Aji
 

10 More Discussions You Might Find Interesting

1. Programming

undefined symbols

i am trying to compile transcode on AIX v 4.3.3 with gcc 3.0.1 i am getting this error: gcc -shared -o .libs/libexport_null.so.0 export_null.o -lpthread -ldl -lc -Wl,-bnoentry -Wl,-bexport:.libs/libexport_null.exp ld: 0711-317 ERROR: Undefined symbol: capability_flag ld: 0711-317... (0 Replies)
Discussion started by: thalex
0 Replies

2. UNIX for Dummies Questions & Answers

static kernel symbols

Why kernel symbols should be declared static? Closed - homework (0 Replies)
Discussion started by: anupa
0 Replies

3. AIX

Unresolved symbols

Hello experts , i have some strange problem, i wanted to create a shared object in AIX 5.3 for which i have compiled all my .cxx to .o which worked fine and then i created the .so from them , but when i do nm -Bo sample.so , i have many unresolved symbol, including printf... (0 Replies)
Discussion started by: vin_pll
0 Replies

4. Shell Programming and Scripting

redirecting symbols

Can anyone please tell me what the following do 1. < 2. << Thanks Calypso (1 Reply)
Discussion started by: Calypso
1 Replies

5. Shell Programming and Scripting

pick first 100 symbols along with its contents

input >aa1 aaaaaa >dd2 aggggg I have a file with 6000 >IDS and their values I need to filter 1st 100 names start with > and their values after that I need to do it for second 100 (2 Replies)
Discussion started by: repinementer
2 Replies

6. Programming

cc -- Unsatisfied symbols -- on HP-UX 10.2

Greetings, I am slowly learning a few things but am far from being an expert. I am at the point now that I would like to be able write some ANSI C code on HP-UX 10.2. Just a hobbie... I am just using cc, which came with the HP-UX 10.2 ... I don't have the manuals for the development... (7 Replies)
Discussion started by: Dirk_
7 Replies

7. UNIX for Dummies Questions & Answers

Help with understanding the symbols '~#' and '~$'

I noticed that sometimes there is "~#" or "~$" in the terminal. What is that? I can't make any research in google because I don't know what are they called. I even tried reading pdf's or books but unfortunately, I wasn't lucky to find out. Maybe I was not persistent enough but I am really... (3 Replies)
Discussion started by: chams
3 Replies

8. Shell Programming and Scripting

Folder contents getting appended as strings while redirecting file contents to a variable

Hi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/' Resource List : <br> *************************** 1. row ***************************<br> ... (2 Replies)
Discussion started by: vivek d r
2 Replies

9. Shell Programming and Scripting

If contents of A are in B then move the common contents to C

Hallo Team, I have 2 .csv files file A has 47600 lines and file B has 67000 lines FILEA SD0o9rb01-1d320ddbcc8d220f572739ebed5f58d1-v300g00 SD8bt0101-a0810bfe0e3396060126ec51b30dac0a-v300g00 SD05sce01-cb056af347ed4651f29eb3c3e9addbd6-v300g00... (3 Replies)
Discussion started by: kekanap
3 Replies

10. AIX

Errno.h symbols

Hi, I need to look at a recent copy of /usr/include/errno.h from AIX 7.2 to check some symbols. In particular, I'm curious if it defines EOWNERDEAD and ENOTRECOVERABLE. Can someone who has access to 7.2 please check for me? Thanks! (1 Reply)
Discussion started by: topcat
1 Replies
IFCFG-VLAN(5)						       Network configuration						     IFCFG-VLAN(5)

NAME
ifcfg-vlan - virtual LAN interface configuration SYNOPSIS
/etc/sysconfig/network/ifcfg-vlan* Virtual LANs (802.1q) To setup a vlan interface you need a configuration file that contains at least the mandatory ETHERDEVICE variable with the real interface used for the virtual LAN. Further, it may contain the optional VLAN_ID variable that specifies the VLAN ID. By default and when the VLAN_ID variable is not set, the number at the end of the interface name is the VLAN ID. Preferably the interface name and the configuration file follow the VLAN interface name scheme (type), that is either: ifcfg-vlan<VLAN-ID> (e.g. ifcfg-vlan42) or ifcfg-name.<VLAN-ID> (e.g. ifcfg-eth0.42) The VLAN-ID can be also 0-padded (e.g. ifcfg-vlan0042 or ifcfg-eth0.0042). Also in case of custom names, trailing digits are interpreted as VLAN-ID by default (e.g. ifcfg-dmz42). When VLAN_ID is set in the config, the interface name have any name (e.g. ifcfg-foobar). Note: The drawback of custom interface names and VLAN_ID usage is, that a rename of the interface is required and that they violate the name scheme. The real interface will be set UP automatically and doesn't need a config file in case of a physical interface. But without a config file YaST will consider this interface as unused, if will not follow hotplug events and you're unable to apply any settings, e.g. ETH- TOOL_OPTIONS. To avoid that, provide an config file with at least STARTMODE='auto'. The rest of the VLAN interface IP and routes configuration do not differ from ordinary interfaces. See also man ifcfg and man routes for details. EXAMPLES
Sets up vlan3 vlan interface on top of eth0: ifcfg-vlan3 STARTMODE='auto' ETHERDEVICE='eth0' IPADDR='192.168.3.27/24' Sets up eth0.3 vlan interface on top of eth0: ifcfg-eth0.3 STARTMODE='auto' ETHERDEVICE='eth0' IPADDR='192.168.3.27/24' Sets up lan1 vlan interface with ID 42 on top of eth0: ifcfg-lan1 STARTMODE='auto' ETHERDEVICE='eth0' VLAN_ID='42' IPADDR='192.168.3.27/24' BUGS
Please report bugs at <http://www.suse.de/feedback> AUTHOR
Christian Zoz <zoz@suse.de> Michal Svec <msvec@suse.cz> Bjoern Jacke Mads Martin Joergensen <mmj@suse.de> Michal Ludvig <mludvig@suse.cz> Marius Tomaschewski <mt@suse.de> SEE ALSO
routes(5), ifcfg(5), ifup(8). sysconfig August 2004 IFCFG-VLAN(5)
All times are GMT -4. The time now is 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy