sed (605レス)
sed http://mevius.5ch.net/test/read.cgi/unix/1085730992/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
567: 名無しさん@お腹いっぱい。 [] 2019/03/20(水) 07:03:53.34 >>566 確か、Linux のcore utilとかだとconfigure sedみたいなかんじで、コマンドの単独コンパイルできる。 manにかかれているメアドでBSDの本家に問い合わせたら 単独コンパイル出来ないとの返事だった。OSビルド用らしい もう消してしまったが、成功した人がいたら教えてほしい。方法がわかれば再試行する気はあります http://mevius.5ch.net/test/read.cgi/unix/1085730992/567
568: 名無しさん@お腹いっぱい。 [sage] 2019/03/20(水) 07:04:29.16 ごめん、もうsageるべきだった http://mevius.5ch.net/test/read.cgi/unix/1085730992/568
569: 名無しさん@お腹いっぱい。 [] 2019/03/26(火) 09:49:12.30 別にageでもいいよ http://mevius.5ch.net/test/read.cgi/unix/1085730992/569
570: 名無しさん@お腹いっぱい。 [sage] 2019/06/24(月) 23:38:04.88 正規表現一致した行と,その一致した行と4行後のみを抽出とかってどうすればいいですか? http://mevius.5ch.net/test/read.cgi/unix/1085730992/570
571: 名無しさん@お腹いっぱい。 [sage] 2019/06/25(火) 13:21:07.60 -n '/re/{p;n;n;n;n;p;}' とか? http://mevius.5ch.net/test/read.cgi/unix/1085730992/571
572: 名無しさん@お腹いっぱい。 [sage] 2019/06/27(木) 17:00:14.56 *.cと*.hを落として gcc -I . compile.c main.c misc.c process.c -o sed するとmain.cの__unreachable();がリンクエラーになるけど https://github.com/freebsd/freebsd/blob/master/sys/sys/cdefs.h#L385を参考に((void)0);に置き換えればビルドできるじゃん http://mevius.5ch.net/test/read.cgi/unix/1085730992/572
573: 名無しさん@お腹いっぱい。 [sage] 2019/07/02(火) 15:24:44.16 >>572 有難う。諦めていたけど早速やってみます。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/573
574: 名無しさん@お腹いっぱい。 [sage] 2019/07/02(火) 22:35:36.02 560です。572のとおりビルドできました。 インストール済のMac版sedは2004年頃なのでバージョンアップできて助かります。 これから100近くあるソースを調べます。 linux版との互換性ない記述を書いてしまいました。 gnu sedもMac上ではビルドできていませんが諦め。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/574
575: 名無しさん@お腹いっぱい。 [sage] 2019/07/02(火) 23:46:07.78 マジかよ gnu sedなんてそれこそ./configureしてmakeだけじゃん --program-prefix=gくらいつけといた方がいいだろけどさ http://mevius.5ch.net/test/read.cgi/unix/1085730992/575
576: 名無しさん@お腹いっぱい。 [sage] 2019/07/02(火) 23:47:55.81 あー、なんかつい誘導されちゃった感じ... http://mevius.5ch.net/test/read.cgi/unix/1085730992/576
577: 名無しさん@お腹いっぱい。 [sage] 2019/07/03(水) 01:18:23.32 >>575 560です。エラー、コピペしていいですか?長いんですけど。。。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/577
578: 名無しさん@お腹いっぱい。 [sage] 2019/07/03(水) 03:40:41.85 gnu sed もインストール出来ました。 bash_profileのパスを最小限にしたらエラーがなくなったみたい? http://mevius.5ch.net/test/read.cgi/unix/1085730992/578
579: 名無しさん@お腹いっぱい。 [sage] 2019/07/03(水) 03:41:36.40 >>577質問は取り消します。有難うございました。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/579
580: 30GBでも大丈夫 thanks sed [sage] 2019/07/06(土) 21:39:28.25 sed -n '10509757p' primes 2147483563 2147483579 2147483587 2147483629 2147483647-2147483648-2147483647-2147483646-2147483645-2147483644 OFやらかした最終行 ... -1800706952-1800706951-1800706950-1800706949-1800706948-1800706947-1800706946-1800706945-1800706944-1800706943 sed -ie '10509758,$d' primes http://mevius.5ch.net/test/read.cgi/unix/1085730992/580
581: 名無しさん@お腹いっぱい。 [sage] 2021/09/08(水) 17:50:49.92 sedのホールドスペースは、その内容を削除するにはどうすれば? とりあえずs/.//g;xでできたけど、もっと直接的なやりかたはないんかなー、と。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/581
582: 名無しさん@お腹いっぱい。 [sage] 2021/09/08(水) 17:54:36.56 sedスクリプトファイルでよく使われる拡張子はあります? ほとんどコマンドラインに-eで書ききるものでしょうが、あえてファイルにするとしたらやっぱりsed? http://mevius.5ch.net/test/read.cgi/unix/1085730992/582
583: 名無しさん@お腹いっぱい。 [sage] 2021/12/25(土) 09:31:39.87 >>582 別にこだわる必要はないけど 各種sed処理系付属のexamplesとか覗くとみんな.sedなので、あえて正書法にこだわるならやはり.sedかと 実装を隠したコマンドとして纏めたい、常に特定のオプション(-i等)で起動したい、主コードとsedの拡張チェック等を分離したいならenvを使うとよい sedによってはオプションを重ねられたり重ねられなかったりするので #! /usr/bin/env -S sed -f (-i -n -e 'check') http://mevius.5ch.net/test/read.cgi/unix/1085730992/583
584: 名無しさん@お腹いっぱい。 [sage] 2021/12/25(土) 09:35:07.03 ところでgnu sedの付録のdc.sedってのやばいなこれ 興味深いけど誰か注釈付けてくれたりしてないのか http://mevius.5ch.net/test/read.cgi/unix/1085730992/584
585: 名無しさん@お腹いっぱい。 [] 2023/02/05(日) 22:38:55.04 onigsed がダウンロードできなくて困ってます。 http://mevius.5ch.net/test/read.cgi/unix/1085730992/585
586: 名無しさん@お腹いっぱい。 [sage] 2023/09/30(土) 14:56:35.67 (@д@)/?.うそ~!”” http://mevius.5ch.net/test/read.cgi/unix/1085730992/586
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 19 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.007s