The UNIX and Linux Forums  


Go Back   UNIXおよびLinuxフォーラム > トップフォーラム > UNIXのダミー質問と回答のため
Googleのunix.com



UNIXのダミー質問と回答のため もしUNIXやLinuxについての質問があれば、ここに投稿してください。すべてのUNIXおよびLinux初心者歓迎!

その他のUNIXおよびLinuxフォーラムトピックは参考にすること
スレッド スレッドスターター フォーラム 返信 最後の投稿
Solarisでの交換を促す dangral Sun Solaris 2 2008年3月6日 06:12午後
スワッピング Esaia SuSEの 3 2006年6月11日 05:09午後
方法について情報交換する レオ UNIXのダミー質問と回答のため 2 2004年5月6日 05:30午後
ページングとスワップ ST2000 ファイルシステムは、ディスクとメモリ 2 2004年4月30日 03:47午後
質問スワップ 98_1LE UNIXのダミー質問と回答のため 1 2001年8月7日 12:43午後

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek を搭載 Powered by Google
 
LinkBack スレッドツール このスレッドを検索 スレッドを評価 表示モード
  #1固定リンク)  
Old 2009年6月24日
ヤーン Jahn is offline
登録ユーザー
  
 

参加日: 2009年5月
投稿数: 9
交換六編集

やあ、

私は別の言葉で、いくつかの似たような言葉を交換しようと午前 。ここに私は、スクリプトが書かれているものです:

3dTcat - + tlrc ../JULY10_2007G/results2TENT/stats.JULY10_2007G + tlrc ../JULY10_2007I/results2TENT/stats.JULY10_2007I + tlrc ../JULY11_2007F/results2TENT/stats.JULY11_2007F SuperBrik_4WAY_HRF ../JULY10_2007A/results2TENT/stats.JULY10_2007Aプレフィックス+ tlrc ../JULY11_2007J/results2TENT/stats.JULY11_2007J + tlrc ../JULY12_2007A/results2TENT/stats.JULY12_2007A + tlrc ../JULY12_2007B/results2TENT/stats.JULY12_2007B + tlrc ../JULY12_2007I/results2TENT/stats.JULY12_2007I + tlrc ../JULY12_2007J/results2TENT/stats.JULY12_2007J + tlrc ../JUNE13_2007A/results2TENT/stats.JUNE13_2007A + tlrc ../JUNE13_2007B/results2TENT/stats.JUNE13_2007B + tlrc ../JUNE13_2007C/results2TENT/stats.JUNE13_2007C + tlrc .. / JUNE13_2007E/results2TENT/stats.JUNE13_2007E + tlrc ../JUNE13_2007G/results2TENT/stats.JUNE13_2007G + tlrc ../JUNE13_2007I/results2TENT/stats.JUNE13_2007I + tlrc ../JUNE14_2007D/results2TENT/stats.JUNE14_2007D + tlrc ../JUNE14_2007H / results2TENT/stats.JUNE14_2007H + tlrc ../JUNE15_2007A/results2TENT/stats.JUNE15_2007A + tlrc


何をやってみたい" stats.J * + "と" tlrc displayBriks交換"です。を使って私はよく存じております: /検索するには、いくつかのコマンドと同一の単語を置き換えると、正規表現ではこの方法をどうしたらよいのかわからないです 。どこから始めて上の考えですか?

ありがとうございました、

-ヤーン
  #2固定リンク)  
Old 2009年6月24日
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
モデレータ
  
 

参加日: 2003年12月
場所:フロリダ州
投稿数: 1,934
おそらく一例は、役立つだろう。次のようなテキストファイルがあると仮定

コード:
abcdefg
faaaag
accxxcck
abbde

を使用する 検索と置換'のすべてのインスタンスb 'に、 ' c 'は、 'エ' 、 'と' e 'をQ 'により、
次のコマンド"を行うことができます: % sを/ [さ] /問/ gの'は結果に

コード:
aQQQQfg
faaaag
aQQxxQQk
aQQQQ

ここには、標準的な料金を除く manページを代用について:

コード:
    [range] s[ubstitute] [/pattern/replace/] [options] [count] [flags]
    [range] & [options] [count] [flags]
    [range] ~ [options] [count] [flags]
        Make substitutions. In the substitution string, the characters ~ and %
        may have special meanings. If the entire replace pattern is a percent
        sign (%), the previous replacement pattern is used. (This can be
        useful for repeating substitutions that contain back references.) The
        special character ~ inserts the previous replacement string into this
        replacement string.
        The options can be any of the following:

        c
            Ask for confirmation before replacing the text.

        g
            Perform the replacement on all occurrences of the regular
            expression on the line.

        r
            If no regular expression was specified, use the most recent
            regular expression (used for a search) rather than the same
            regular expression as used for the last substitute command.

Reply

ブックマーク

スレッドツール このスレッドを検索
このスレッドを検索

高度な検索
表示モード このスレッド
このスレッド

投稿ルール
あなた ことができない。 新しいスレッドを投稿
あなた ことができない。 返信の投稿
あなた ことができない。 添付ファイルの投稿
あなた ことができない。 自分の投稿を編集

BBコード なる 〜の上に
スマイリー なる 〜の上に
[イメージ] コードは 〜の上に
HTMLコードは、 オフ
トラックバック なる 〜の上に
ピングバック なる 〜の上に
Refbacks なる 〜の上に




すべてGMT -4です。現在の時刻は 07:03午後


提供: vBulletin、著作権© 2000 - 2006、Jelsoft企業株式会社。言語翻訳による電源
vBCredits v1.4著作権© 2007 - 2008 、 PixelFXスタジオ
は、 UNIXおよびLinuxフォーラムのコンテンツ著作権© 1993 〜 2009 。すべての権利を管理しReserved.Ad RedTyger

コンテンツ関連のURLで vBSEO 3.2.0