<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как удалить в строке не нужное (sed)]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=26060&amp;type=atom" />
	<updated>2013-01-15T05:58:36Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=26060</id>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320756#p320756" />
			<content type="html"><![CDATA[<p>спасибо!<br />так все работает - <em>sed -i &#039;s/[[:blank:]]*hold//&#039; /var/mobile/Media/general_storage/removemytweaks.txt</em></p>]]></content>
			<author>
				<name><![CDATA[inux]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25426</uri>
			</author>
			<updated>2013-01-15T05:58:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320756#p320756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320755#p320755" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>inux пишет:</cite><blockquote><p>не удалились (</p></blockquote></div><p>Вы имеете в виду, что они остались в целевом файле?<br />Добавьте опцию <strong>-i</strong> к команде, тогда файл перепишется.<br /></p><div class="codebox"><pre><code>sed -i &#039;s/[[:blank:]]*hold//&#039; /var/mobile/Media/general_storage/removemytweaks.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-01-15T05:53:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320755#p320755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320754#p320754" />
			<content type="html"><![CDATA[<p>выполнил - sed &#039;s/[[:blank:]]*hold//&#039; &quot;/var/mobile/Media/general_storage/removemytweaks.txt&quot;<br />не удалились (</p>]]></content>
			<author>
				<name><![CDATA[inux]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25426</uri>
			</author>
			<updated>2013-01-15T05:43:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320754#p320754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320753#p320753" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Примерно так:</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />lupo@gentoo-laptop temp % cat test.txt<br />actionmenu&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />applist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt7-ssl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />basic-cmds&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />berkeleydb&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.actionmenu-pluspack&nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.appcake2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.ipastore&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.repoicon&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alexzielenski.zeppelin&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.abfix&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.asktosend&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.blocker&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.bulletin&nbsp; &nbsp; &nbsp; &nbsp; hold&nbsp; &nbsp; <br />com.alpden.dater&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.iap&nbsp; &nbsp; hold&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.infinidock&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.ischeduler&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.jukebox&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.manualcorrectpro&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.mobileterminal&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.repoprep&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.springtomize2&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.stealthcam<br />lupo@gentoo-laptop temp % sed &#039;s/[[:blank:]]*hold//&#039; test.txt<br />actionmenu&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />applist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />apt7-ssl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />basic-cmds&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />berkeleydb&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.actionmenu-pluspack&nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.appcake2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.ipastore&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />boerse.repoicon&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alexzielenski.zeppelin&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.abfix&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.asktosend&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.blocker&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.bulletin&nbsp; &nbsp; <br />com.alpden.dater&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.iap&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.infinidock&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.ischeduler&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.jukebox&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.manualcorrectpro&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.mobileterminal&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.repoprep&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.springtomize2&nbsp; &nbsp; &nbsp; &nbsp; <br />com.alpden.stealthcam<br />lupo@gentoo-laptop temp % awk &#039;{print $1}&#039; test.txt<br />actionmenu<br />applist<br />apt<br />apt7<br />apt7-ssl<br />basic-cmds<br />berkeleydb<br />boerse.actionmenu-pluspack<br />boerse.appcake2<br />boerse.ipastore<br />boerse.repoicon<br />com.alexzielenski.zeppelin<br />com.alpden.abfix<br />com.alpden.asktosend<br />com.alpden.blocker<br />com.alpden.bulletin<br />com.alpden.dater<br />com.alpden.iap<br />com.alpden.infinidock<br />com.alpden.ischeduler<br />com.alpden.jukebox<br />com.alpden.manualcorrectpro<br />com.alpden.mobileterminal<br />com.alpden.repoprep<br />com.alpden.springtomize2<br />com.alpden.stealthcam<br />lupo@gentoo-laptop temp % <br /></div></p></div></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-01-15T05:36:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320753#p320753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320752#p320752" />
			<content type="html"><![CDATA[<p>в этом файле нужно найти и удалить hold<br />&quot;/var/mobile/Media/general_storage/removemytweaks.txt&quot;</p><p>в какой строчке он может быть - неизвестно.</p><div class="codebox"><pre><code>actionmenu                
applist                    
apt                    
apt7                    
apt7-ssl                
basic-cmds                
berkeleydb                
boerse.actionmenu-pluspack        
boerse.appcake2                
boerse.ipastore                
boerse.repoicon                
com.alexzielenski.zeppelin        
com.alpden.abfix            
com.alpden.asktosend            
com.alpden.blocker            
com.alpden.bulletin        hold    
com.alpden.dater            
com.alpden.iap    hold            
com.alpden.infinidock            
com.alpden.ischeduler            
com.alpden.jukebox            
com.alpden.manualcorrectpro        
com.alpden.mobileterminal        
com.alpden.repoprep            
com.alpden.springtomize2        
com.alpden.stealthcam            </code></pre></div>]]></content>
			<author>
				<name><![CDATA[inux]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25426</uri>
			</author>
			<updated>2013-01-15T05:30:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320752#p320752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320750#p320750" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>inux пишет:</cite><blockquote><p>com.official.safari - эта часть в строке как пример, может быть какой угодно!</p></blockquote></div><p>Покажите «кусок» файла со строками.<br />P.S. Команды в моём сообщении это только подсказка, а не руководство к действию <img src="https://linuxforum.ru/img/smilies/bx.gif" alt="bx" /></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-01-15T05:28:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320750#p320750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320748#p320748" />
			<content type="html"><![CDATA[<p>com.official.safari - эта часть в строке как пример, может быть какой угодно!</p>]]></content>
			<author>
				<name><![CDATA[inux]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25426</uri>
			</author>
			<updated>2013-01-15T05:26:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320748#p320748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320747#p320747" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>echo &quot;com.official.safari hold&quot; | sed &#039;s/ hold//&#039;</code></pre></div><p>или, если строки подобные указанной в примере<br /></p><div class="codebox"><pre><code>echo &quot;com.official.safari hold&quot; | awk &#039;/hold/ {print $1}&#039;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-01-15T05:26:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320747#p320747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как удалить в строке не нужное (sed)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=320745#p320745" />
			<content type="html"><![CDATA[<p>Здравствуйте,<br />в текстовом файле, в некоторых строках есть текст &quot;hold&quot;<br />как удалить в строке &quot;hold&quot;</p><p>пример строки:<br /><em>com.official.safari hold</em></p><p>нужно, что бы строка была такая:<br /><em>com.official.safari</em></p><p>...<br />com.official.safari - эта часть в строке как пример, может быть какой угодно!</p>]]></content>
			<author>
				<name><![CDATA[inux]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25426</uri>
			</author>
			<updated>2013-01-15T05:20:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=320745#p320745</id>
		</entry>
</feed>
