<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic deleting a particular line in a file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922393#M104504</link>
    <description>Hi Guys, &lt;BR /&gt;&lt;BR /&gt;   I am writing a script to remove a particular line in a file but it doesnt seem to work:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dline=`echo "henry_25"`&lt;BR /&gt;jfile=`echo "list"`&lt;BR /&gt;&lt;BR /&gt;echo "jfile = $jfile"&lt;BR /&gt;echo "dline = $dline"&lt;BR /&gt;&lt;BR /&gt;sed '/\$dline/d' $jfile &amp;gt; file&lt;BR /&gt;~&lt;BR /&gt;&lt;BR /&gt;It appears that my identifier are not recognisable.. but if i need these identifier how can i alter the 'sed' command to achieve this? ThankS&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Henry</description>
    <pubDate>Wed, 31 Aug 2005 06:39:19 GMT</pubDate>
    <dc:creator>Henry Chua</dc:creator>
    <dc:date>2005-08-31T06:39:19Z</dc:date>
    <item>
      <title>deleting a particular line in a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922393#M104504</link>
      <description>Hi Guys, &lt;BR /&gt;&lt;BR /&gt;   I am writing a script to remove a particular line in a file but it doesnt seem to work:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dline=`echo "henry_25"`&lt;BR /&gt;jfile=`echo "list"`&lt;BR /&gt;&lt;BR /&gt;echo "jfile = $jfile"&lt;BR /&gt;echo "dline = $dline"&lt;BR /&gt;&lt;BR /&gt;sed '/\$dline/d' $jfile &amp;gt; file&lt;BR /&gt;~&lt;BR /&gt;&lt;BR /&gt;It appears that my identifier are not recognisable.. but if i need these identifier how can i alter the 'sed' command to achieve this? ThankS&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Henry</description>
      <pubDate>Wed, 31 Aug 2005 06:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922393#M104504</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-08-31T06:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: deleting a particular line in a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922394#M104505</link>
      <description>Hi Henry,&lt;BR /&gt;&lt;BR /&gt;Woulnd a cat &lt;FILE&gt;| grep -v "argument" &amp;gt;newfile  do the job?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/FILE&gt;</description>
      <pubDate>Wed, 31 Aug 2005 06:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922394#M104505</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-08-31T06:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: deleting a particular line in a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922395#M104506</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In this case you have to use " (double quote) instead of ' (single quote)&lt;BR /&gt;&lt;BR /&gt;sed "/$dline/d" $jfile &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Aug 2005 06:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922395#M104506</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-08-31T06:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: deleting a particular line in a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922396#M104507</link>
      <description>Victor suggestion is the answer i need! thank!!!</description>
      <pubDate>Wed, 31 Aug 2005 06:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-a-particular-line-in-a-file/m-p/4922396#M104507</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-08-31T06:48:51Z</dc:date>
    </item>
  </channel>
</rss>

