النتائج 1 إلى 8 من 8

الموضوع: مطلوب امر الاستبدال في قواعد البيانات باستخدام الشل

  1. #1
    عضو فعال
    تاريخ التسجيل
    Dec 2001
    المشاركات
    1,062

    مطلوب امر الاستبدال في قواعد البيانات باستخدام الشل



    السلام عليكم

    مطلوب امر الاستبدال في قواعد البيانات باستخدام الشل

    سبق وطرح في سوالف اعتقد عن طريق العندليب ( مو متذكر بالضبط )

    ولكن لم يفلح البحث بالعثور علية

    المطلوب هو امر الاستبدال في قواعد البيانات

    مثلاً ارغب باستبدال domain.com بـ بالدومين domain.net داخل قاعدة البيانات







  2. #2
    عضو فعال جدا
    تاريخ التسجيل
    Nov 2003
    المشاركات
    2,197


    السلام عليكم

    مطلوب امر الاستبدال في قواعد البيانات باستخدام الشل

    سبق وطرح في سوالف اعتقد عن طريق العندليب ( مو متذكر بالضبط )

    ولكن لم يفلح البحث بالعثور علية

    المطلوب هو امر الاستبدال في قواعد البيانات

    مثلاً ارغب باستبدال domain.com بـ بالدومين domain.net داخل قاعدة البيانات
    السلام عليكم

    تفضل هذا هو طلبك:

    كود:
    replace "domain.com" "domain.net" vbulletin.sql






    __________________
    سيكـــيوريتي واي لخدمات وأمن الانترنت
    http://securityway.net

    admin@securityway.net

  3. #3
    عضو فعال
    تاريخ التسجيل
    Dec 2001
    المشاركات
    1,062


    يعطيني الخطأ

    replace: No to-string for last from-string

    جربت الامر بدون علامات تنصيص ونفس الشي يعطيني نفس الخطأ






  4. #4
    عضو نشيط
    تاريخ التسجيل
    May 2007
    المشاركات
    142


    Invoke replace in one of the following ways:
    كود:
              shell> replace from to [from to] ... -- file [file] ...
              shell> replace from to [from to] ... < file
    from represents a string to look for and to represents its replacement. There can be
    one or more pairs of strings.

    Use the -- option to indicate where the string-replacement list ends and the
    filenames begin. In this case, any file named on the command line is modified in
    place, so you may want to make a copy of the original before converting it. replace
    prints a message indicating which of the input files it actually modifies.

    If the -- option is not given, replace reads the standard input and writes to the
    standard output.

    replace uses a finite state machine to match longer strings first. It can be used to
    swap strings. For example, the following command swaps a and b in the given files,
    file1 and file2:

    كود:
              shell> replace a b b a -- file1 file2 ...
    info from man replace





    __________________
    مجتمع لينوكس العربي
    الموقع العربي الأول لنظام جنو/لينوكس

  5. #5
    عضو فعال
    تاريخ التسجيل
    Dec 2001
    المشاركات
    1,062


    Invoke replace in one of the following ways:
    كود:
              shell> replace from to [from to] ... -- file [file] ...
              shell> replace from to [from to] ... < file
    from represents a string to look for and to represents its replacement. There can be
    one or more pairs of strings.

    Use the -- option to indicate where the string-replacement list ends and the
    filenames begin. In this case, any file named on the command line is modified in
    place, so you may want to make a copy of the original before converting it. replace
    prints a message indicating which of the input files it actually modifies.

    If the -- option is not given, replace reads the standard input and writes to the
    standard output.

    replace uses a finite state machine to match longer strings first. It can be used to
    swap strings. For example, the following command swaps a and b in the given files,
    file1 and file2:

    كود:
              shell> replace a b b a -- file1 file2 ...
    info from man replace
    ياليت توضح لي اكثر اخوي






  6. #6
    عضو نشيط جدا
    تاريخ التسجيل
    May 2005
    المشاركات
    329


    الغالي :

    مثل ماتفضل محمد و LinuxAc:

    كود PHP:
    replace "domain.com" "domain.net" -- vbulletin.sql 
    لاحظ اما -- او > قبل اسم الملف .

    او لو تبغى حرية اكثر مع ال reg. exp. :

    كود PHP:
    sed 's/domain.com/domain.net/g' 
    لاتنسى تسوي ريدايركت للاوت بوت بيصير الامر :

    كود PHP:
    sed 's/domain.com/domain.net/g' newFile.sql 
    ، ونصيحة دائما خذ بك من الملف قبل تعدل عليه :

    كود PHP:
    cp -af file file.$$ 

    لك التحية ، علي حمد .






  7. #7
    عضو فعال
    تاريخ التسجيل
    Dec 2001
    المشاركات
    1,062


    محمد عبيد , LinuxAC , علي حمد

    اسئل الله الا يحرمنا واياكم الاجر والثواب

    على حمد انت صاحبنا في ابعاد ؟






  8. #8
    عضو نشيط جدا
    تاريخ التسجيل
    May 2005
    المشاركات
    329


    محمد عبيد , LinuxAC , علي حمد

    اسئل الله الا يحرمنا واياكم الاجر والثواب

    على حمد انت صاحبنا في ابعاد ؟
    امين يالغالي .. اي نعم انا اعمل لدى ابعاد المعلومات .

    علي حمد .










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض