انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: بهترین regex برای متن!؟  (دفعات بازدید: 700 بار)

0 کاربر و 4 مهمان درحال مشاهده موضوع.

آفلاین QSBuntu

  • High Sr. Member
  • *
  • ارسال: 613
  • جنسیت : پسر
بهترین regex برای متن!؟
« : 12 مهر 1395، 11:37 ق‌ظ »
سلام بر همگی
واقعه از این قراره که بر اثر یه اشتباه تو پاک کردن داشت همه برنامه ی وابسته پاک میشد و تا فهمیدم قطعش کردم ولی حدود 62 بسته و برنامه پاک شده بود
حالا سوالی که دارم  اینه که  رجکس بیرون کشیدن اسم برنامه چیه؟!
فقط دقت کنین اضافه اسم بسته ها هم برداشته نشه

اسم بسته های پاک شده رو رفتم از توی لاگ اپت بیرون کشیدم


Log started: 2016-10-02  11:51:07
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 533441 files and directories currently installed.)
Removing asymptote (2.37-1) ...
Removing atom (1.7.3) ...
Removing autopilot-desktop-legacy (1.4.1+15.10.20150911-0ubuntu2) ...
Removing bittorrent-gui (3.4.2-12) ...
Removing bittorrent (3.4.2-12) ...
Removing ubuntu-sdk (1.264) ...
Removing qtcreator-plugin-ubuntu-autopilot (3.5.0+16.04.20160419-0ubuntu1) ...
Removing qtcreator-plugin-ubuntu (3.5.0+16.04.20160419-0ubuntu1) ...
Removing phablet-tools (1.2+16.04.20160317-0ubuntu1) ...
Removing bzr-builddeb (2.8.9) ...
Removing bzr (2.7.0-2ubuntu2) ...
Removing dblatex (0.3.7-1) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Done.
Removing deja-dup-backend-gvfs (34.2-0ubuntu1) ...
Removing dh-make (2.201605~xenial1) ...
Removing dput (0.9.6.4ubuntu3) ...
Removing duplicity (0.7.06-2ubuntu2) ...
Removing gedit-developer-plugins (0.5.15-0ubuntu1) ...
Removing gimp (2.8.16-1ubuntu1.1) ...
Removing ubuntu-sdk-libs-dev:amd64 (1.264) ...
Removing google-mock:amd64 (1.7.0-18092013-1) ...
Removing guake (0.8.4-1) ...
Removing gvfs-backends (1.28.2-1ubuntu1~16.04.1) ...
Removing itstool (2.0.2-3) ...
Removing okular (4:15.12.3-0ubuntu1) ...
Removing krita (1:2.9.7-0ubuntu12) ...
Removing kde-runtime (4:15.12.3-0ubuntu1) ...
Removing knot (2.1.1-1build1) ...
Removing krop (0.4.11-1) ...
Removing libappindicator3-dev (12.10.1+15.04.20141110-0ubuntu1) ...
Removing libwebkit2gtk-4.0-dev:amd64 (2.12.5-0ubuntu0.16.04.1) ...
Removing libgtkspell3-3-dev:amd64 (3.0.7-2) ...
Removing libcanberra-gtk-dev:amd64 (0.30-2.1ubuntu1) ...
Removing libdbusmenu-glib-dev:amd64 (12.10.3+16.04.20160223.1-0ubuntu1) ...
Removing libgtk2.0-dev (2.24.30-1ubuntu1) ...
Removing libavahi-gobject-dev (0.6.32~rc+dfsg-1ubuntu2) ...
Removing libavahi-glib-dev (0.6.32~rc+dfsg-1ubuntu2) ...
Removing libpoppler-glib-dev (0.41.0-0ubuntu1.1) ...
Removing libcanberra-gtk3-dev:amd64 (0.30-2.1ubuntu1) ...
Removing libdbus-glib-1-dev (0.106-1) ...
Removing libdmapsharing-3.0-dev:amd64 (2.9.34-1) ...
Removing libenchant-dev (1.6.0-10.1build2) ...
Removing libgstreamer1.0-dev (1.8.3-1~ubuntu0.1) ...
Removing 'diversion of /usr/bin/dh_gstscancodecs to /usr/bin/dh_gstscancodecs-gst0.10 by libgstreamer1.0-dev'
Removing 'diversion of /usr/share/man/man1/dh_gstscancodecs.1.gz to /usr/share/man/man1/dh_gstscancodecs.1.gz-gst0.10 by libgstreamer1.0-dev'
Removing libsoup2.4-dev (2.52.2-1ubuntu0.1) ...
Removing libgmime-2.6-dev (2.6.20-1) ...
Removing libgudev-1.0-dev:amd64 (1:230-2) ...
Removing libpinyin7-dev:amd64 (1.3.0-2ubuntu1) ...
Removing libpolkit-agent-1-dev (0.105-14.1) ...
Removing libpolkit-gobject-1-dev (0.105-14.1) ...
Removing libsmbclient-dev:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.1) ...
Removing vlc-plugin-samba (2.2.2+git20160929+r58843+56~ubuntu16.04.1) ...
Removing libsmbclient:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.1) ...
Removing libxklavier-dev:amd64 (5.4-0ubuntu2) ...
Removing vprerex (6.5.3-1) ...
Removing texlive-full (2015.20160320-1) ...
Removing prerex (6.5.3-1) ...
Removing prosper (1.00.4+cvs.2007.05.01-4) ...
Running 'mktexlsr /usr/share/texmf /var/lib/texmf'.
This may take some time... done.
Removing pybootchartgui (0+r141-0ubuntu6) ...
Removing steam-launcher (1.0.0.52) ...
Removing virtualbox-qt (5.0.24-dfsg-0ubuntu1.16.04.1) ...
Removing virtualbox (5.0.24-dfsg-0ubuntu1.16.04.1) ...
Removing python-libxml2 (2.9.3+dfsg1-1ubuntu0.1) ...
Removing ubuntu-dev-tools (0.155ubuntu2) ...
Removing python-all-dev (2.7.11-1) ...
Removing python-all (2.7.11-1) ...
Removing python-appindicator (12.10.1+15.04.20141110-0ubuntu1) ...
Removing python-apt (1.1.0~beta1build1) ...
Removing python-autopilot-vis (1.4.1+15.10.20150911-0ubuntu2) ...
Removing python-autopilot-trace (1.4.1+15.10.20150911-0ubuntu2) ...
Removing python-bittorrent (3.4.2-12) ...
Removing python-bzrlib (2.7.0-2ubuntu2) ...
Removing python-vte (1:0.28.2-5ubuntu3) ...
Removing python-notify (0.1.1-4) ...
^[Removing python-ndg-httpsclient (0.4.0-3) ...
Removing python-openssl (0.15.1-2build1) ...
Removing python-cryptography (1.2.3-1) ...
Removing python-cffi-backend (1.5.2-1ubuntu1) ...
Removing reportbug (6.6.6ubuntu1) ...
Removing python-reportbug (6.6.6ubuntu1) ...
Removing python-debian (0.1.27ubuntu2) ...
Removing python-requests (2.9.1-3) ...
Removing python-chardet (2.3.0-2) ...
Removing python-configobj (5.0.6-2) ...
Removing python-secretstorage (2.1.3-1) ...
Removing python-crypto (2.6.1-6build1) ...
Removing python-cssutils (1.0-4.1) ...
Removing python-qt4-dbus (4.11.4+dfsg-1build4) ...
Removing python-debianbts (2.6.0) ...
Removing python-soappy (0.12.22-1) ...
qRemoving python-defusedxml (0.4.1-2build1) ...
qRemoving python-dev (2.7.11-1) ...
Removing python-distro-info (0.14build1) ...
qRemoving python-dns (2.3.6-3) ...
qqRemoving python-enum34 (1.1.2-1) ...
qRemoving python-mock (1.3.0-2.1ubuntu1) ...
Removing python-funcsigs (0.4-2) ...
Removing python-gconf (2.28.1+dfsg-1.1) ...
Removing tor-arm (1.4.5.0-1.1) ...
Removing python-torctl (20130920git-2) ...
زندگی خواهم کرد... خواهم زیست ... و میجنگم حتی اگر........................

آفلاین alend

  • High Hero Member
  • *
  • ارسال: 1322
پاسخ : بهترین regex برای متن!؟
« پاسخ #1 : 12 مهر 1395، 03:34 ب‌ظ »
grep Removing "yourfile" | cut -d" " -f2

آفلاین QSBuntu

  • High Sr. Member
  • *
  • ارسال: 613
  • جنسیت : پسر
پاسخ : بهترین regex برای متن!؟
« پاسخ #2 : 12 مهر 1395، 04:36 ب‌ظ »
grep Removing "yourfile" | cut -d" " -f2
بسی تشکر



اما من بیشتر دنبال اینم ک ببینم رجکسش چی میشه...
زندگی خواهم کرد... خواهم زیست ... و میجنگم حتی اگر........................

آفلاین alend

  • High Hero Member
  • *
  • ارسال: 1322
پاسخ : بهترین regex برای متن!؟
« پاسخ #3 : 12 مهر 1395، 05:33 ب‌ظ »
اینجا نیاز به regex نیست.