Skip to content

Instantly share code, notes, and snippets.

@ArseniyShestakov
Last active September 14, 2023 13:55
Show Gist options
  • Save ArseniyShestakov/4863f6b30967ad70ac62f0ae324e00b2 to your computer and use it in GitHub Desktop.
Save ArseniyShestakov/4863f6b30967ad70ac62f0ae324e00b2 to your computer and use it in GitHub Desktop.
How to build file list of Yandex source code
  1. Get list of archives like this:
one.tar.bz2
two.tar.bz2
  1. In any code editor use search and replace with regex. Find this
(.+).tar.bz2

Replace with:

tar tf $1.tar.bz2 | sed -e 's/^\./$1/' >> yandex_file_list.txt
  1. Run the command end enjoy 50MB file list:

PS: Or build serveral small file lists:

tar tf $1.tar.bz2 | sed -e 's/^\./$1/' >> $1_file_list.txt
tar tf aapi.tar.bz2 | sed -e 's/^\./aapi/' >> yandex_file_list.txt
tar tf ci.tar.bz2 | sed -e 's/^\./ci/' >> yandex_file_list.txt
tar tf disk.tar.bz2 | sed -e 's/^\./disk/' >> yandex_file_list.txt
tar tf kernel.tar.bz2 | sed -e 's/^\./kernel/' >> yandex_file_list.txt
tar tf pay.tar.bz2 | sed -e 's/^\./pay/' >> yandex_file_list.txt
tar tf smarttv.tar.bz2 | sed -e 's/^\./smarttv/' >> yandex_file_list.txt
tar tf admins.tar.bz2 | sed -e 's/^\./admins/' >> yandex_file_list.txt
tar tf docs.tar.bz2 | sed -e 's/^\./docs/' >> yandex_file_list.txt
tar tf library.tar.bz2 | sed -e 's/^\./library/' >> yandex_file_list.txt
tar tf payplatform.tar.bz2 | sed -e 's/^\./payplatform/' >> yandex_file_list.txt
tar tf solomon.tar.bz2 | sed -e 's/^\./solomon/' >> yandex_file_list.txt
tar tf ads.tar.bz2 | sed -e 's/^\./ads/' >> yandex_file_list.txt
tar tf client_analytics.tar.bz2 | sed -e 's/^\./client_analytics/' >> yandex_file_list.txt
tar tf drive.tar.bz2 | sed -e 's/^\./drive/' >> yandex_file_list.txt
tar tf load.tar.bz2 | sed -e 's/^\./load/' >> yandex_file_list.txt
tar tf paysys.tar.bz2 | sed -e 's/^\./paysys/' >> yandex_file_list.txt
tar tf stocks.tar.bz2 | sed -e 's/^\./stocks/' >> yandex_file_list.txt
tar tf alice.tar.bz2 | sed -e 's/^\./alice/' >> yandex_file_list.txt
tar tf client_method.tar.bz2 | sed -e 's/^\./client_method/' >> yandex_file_list.txt
tar tf extsearch.tar.bz2 | sed -e 's/^\./extsearch/' >> yandex_file_list.txt
tar tf mail.tar.bz2 | sed -e 's/^\./mail/' >> yandex_file_list.txt
tar tf portal.tar.bz2 | sed -e 's/^\./portal/' >> yandex_file_list.txt
tar tf switch.tar.bz2 | sed -e 's/^\./switch/' >> yandex_file_list.txt
tar tf analytics.tar.bz2 | sed -e 's/^\./analytics/' >> yandex_file_list.txt
tar tf cloud.tar.bz2 | sed -e 's/^\./cloud/' >> yandex_file_list.txt
tar tf maps.tar.bz2 | sed -e 's/^\./maps/' >> yandex_file_list.txt
tar tf privacy_office.tar.bz2 | sed -e 's/^\./privacy_office/' >> yandex_file_list.txt
tar tf tasklet.tar.bz2 | sed -e 's/^\./tasklet/' >> yandex_file_list.txt
tar tf antiadblock.tar.bz2 | sed -e 's/^\./antiadblock/' >> yandex_file_list.txt
tar tf commerce.tar.bz2 | sed -e 's/^\./commerce/' >> yandex_file_list.txt
tar tf fuzzing.tar.bz2 | sed -e 's/^\./fuzzing/' >> yandex_file_list.txt
tar tf maps_2.tar.bz2 | sed -e 's/^\./maps_2/' >> yandex_file_list.txt
tar tf products.tar.bz2 | sed -e 's/^\./products/' >> yandex_file_list.txt
tar tf taxi.tar.bz2 | sed -e 's/^\./taxi/' >> yandex_file_list.txt
tar tf antirobot.tar.bz2 | sed -e 's/^\./antirobot/' >> yandex_file_list.txt
tar tf config.tar.bz2 | sed -e 's/^\./config/' >> yandex_file_list.txt
tar tf gencfg.tar.bz2 | sed -e 's/^\./gencfg/' >> yandex_file_list.txt
tar tf maps_adv.tar.bz2 | sed -e 's/^\./maps_adv/' >> yandex_file_list.txt
tar tf robot.tar.bz2 | sed -e 's/^\./robot/' >> yandex_file_list.txt
tar tf tools.tar.bz2 | sed -e 's/^\./tools/' >> yandex_file_list.txt
tar tf autocheck.tar.bz2 | sed -e 's/^\./autocheck/' >> yandex_file_list.txt
tar tf connect.tar.bz2 | sed -e 's/^\./connect/' >> yandex_file_list.txt
tar tf groups.tar.bz2 | sed -e 's/^\./groups/' >> yandex_file_list.txt
tar tf market.tar.bz2 | sed -e 's/^\./market/' >> yandex_file_list.txt
tar tf rt-research.tar.bz2 | sed -e 's/^\./rt-research/' >> yandex_file_list.txt
tar tf travel.tar.bz2 | sed -e 's/^\./travel/' >> yandex_file_list.txt
tar tf balancer.tar.bz2 | sed -e 's/^\./balancer/' >> yandex_file_list.txt
tar tf crm.tar.bz2 | sed -e 's/^\./crm/' >> yandex_file_list.txt
tar tf helpdesk.tar.bz2 | sed -e 's/^\./helpdesk/' >> yandex_file_list.txt
tar tf metrika.tar.bz2 | sed -e 's/^\./metrika/' >> yandex_file_list.txt
tar tf saas.tar.bz2 | sed -e 's/^\./saas/' >> yandex_file_list.txt
tar tf wmconsole.tar.bz2 | sed -e 's/^\./wmconsole/' >> yandex_file_list.txt
tar tf billing.tar.bz2 | sed -e 's/^\./billing/' >> yandex_file_list.txt
tar tf crypta.tar.bz2 | sed -e 's/^\./crypta/' >> yandex_file_list.txt
tar tf infra.tar.bz2 | sed -e 's/^\./infra/' >> yandex_file_list.txt
tar tf mobile-WARNING-notfull.tar.bz2 | sed -e 's/^\./mobile-WARNING-notfull/' >> yandex_file_list.txt
tar tf sandbox.tar.bz2 | sed -e 's/^\./sandbox/' >> yandex_file_list.txt
tar tf yandex360.tar.bz2 | sed -e 's/^\./yandex360/' >> yandex_file_list.txt
tar tf bindings.tar.bz2 | sed -e 's/^\./bindings/' >> yandex_file_list.txt
tar tf customer_service.tar.bz2 | sed -e 's/^\./customer_service/' >> yandex_file_list.txt
tar tf intranet.tar.bz2 | sed -e 's/^\./intranet/' >> yandex_file_list.txt
tar tf nginx.tar.bz2 | sed -e 's/^\./nginx/' >> yandex_file_list.txt
tar tf search.tar.bz2 | sed -e 's/^\./search/' >> yandex_file_list.txt
tar tf yandex_io.tar.bz2 | sed -e 's/^\./yandex_io/' >> yandex_file_list.txt
tar tf captcha.tar.bz2 | sed -e 's/^\./captcha/' >> yandex_file_list.txt
tar tf datacloud.tar.bz2 | sed -e 's/^\./datacloud/' >> yandex_file_list.txt
tar tf investors.tar.bz2 | sed -e 's/^\./investors/' >> yandex_file_list.txt
tar tf noc.tar.bz2 | sed -e 's/^\./noc/' >> yandex_file_list.txt
tar tf security.tar.bz2 | sed -e 's/^\./security/' >> yandex_file_list.txt
tar tf yaphone.tar.bz2 | sed -e 's/^\./yaphone/' >> yandex_file_list.txt
tar tf cdn.tar.bz2 | sed -e 's/^\./cdn/' >> yandex_file_list.txt
tar tf delivery.tar.bz2 | sed -e 's/^\./delivery/' >> yandex_file_list.txt
tar tf it-office.tar.bz2 | sed -e 's/^\./it-office/' >> yandex_file_list.txt
tar tf partner.tar.bz2 | sed -e 's/^\./partner/' >> yandex_file_list.txt
tar tf skynet.tar.bz2 | sed -e 's/^\./skynet/' >> yandex_file_list.txt
tar tf yawe.tar.bz2 | sed -e 's/^\./yawe/' >> yandex_file_list.txt
tar tf certs.tar.bz2 | sed -e 's/^\./certs/' >> yandex_file_list.txt
tar tf direct.tar.bz2 | sed -e 's/^\./direct/' >> yandex_file_list.txt
tar tf jupytercloud.tar.bz2 | sed -e 's/^\./jupytercloud/' >> yandex_file_list.txt
tar tf passport.tar.bz2 | sed -e 's/^\./passport/' >> yandex_file_list.txt
tar tf smart_devices.tar.bz2 | sed -e 's/^\./smart_devices/' >> yandex_file_list.txt
tar tf aapi.tar.bz2 | sed -e 's/^\./aapi/' >> aapi_file_list.txt
tar tf ci.tar.bz2 | sed -e 's/^\./ci/' >> ci_file_list.txt
tar tf disk.tar.bz2 | sed -e 's/^\./disk/' >> disk_file_list.txt
tar tf kernel.tar.bz2 | sed -e 's/^\./kernel/' >> kernel_file_list.txt
tar tf pay.tar.bz2 | sed -e 's/^\./pay/' >> pay_file_list.txt
tar tf smarttv.tar.bz2 | sed -e 's/^\./smarttv/' >> smarttv_file_list.txt
tar tf admins.tar.bz2 | sed -e 's/^\./admins/' >> admins_file_list.txt
tar tf docs.tar.bz2 | sed -e 's/^\./docs/' >> docs_file_list.txt
tar tf library.tar.bz2 | sed -e 's/^\./library/' >> library_file_list.txt
tar tf payplatform.tar.bz2 | sed -e 's/^\./payplatform/' >> payplatform_file_list.txt
tar tf solomon.tar.bz2 | sed -e 's/^\./solomon/' >> solomon_file_list.txt
tar tf ads.tar.bz2 | sed -e 's/^\./ads/' >> ads_file_list.txt
tar tf client_analytics.tar.bz2 | sed -e 's/^\./client_analytics/' >> client_analytics_file_list.txt
tar tf drive.tar.bz2 | sed -e 's/^\./drive/' >> drive_file_list.txt
tar tf load.tar.bz2 | sed -e 's/^\./load/' >> load_file_list.txt
tar tf paysys.tar.bz2 | sed -e 's/^\./paysys/' >> paysys_file_list.txt
tar tf stocks.tar.bz2 | sed -e 's/^\./stocks/' >> stocks_file_list.txt
tar tf alice.tar.bz2 | sed -e 's/^\./alice/' >> alice_file_list.txt
tar tf client_method.tar.bz2 | sed -e 's/^\./client_method/' >> client_method_file_list.txt
tar tf extsearch.tar.bz2 | sed -e 's/^\./extsearch/' >> extsearch_file_list.txt
tar tf mail.tar.bz2 | sed -e 's/^\./mail/' >> mail_file_list.txt
tar tf portal.tar.bz2 | sed -e 's/^\./portal/' >> portal_file_list.txt
tar tf switch.tar.bz2 | sed -e 's/^\./switch/' >> switch_file_list.txt
tar tf analytics.tar.bz2 | sed -e 's/^\./analytics/' >> analytics_file_list.txt
tar tf cloud.tar.bz2 | sed -e 's/^\./cloud/' >> cloud_file_list.txt
tar tf maps.tar.bz2 | sed -e 's/^\./maps/' >> maps_file_list.txt
tar tf privacy_office.tar.bz2 | sed -e 's/^\./privacy_office/' >> privacy_office_file_list.txt
tar tf tasklet.tar.bz2 | sed -e 's/^\./tasklet/' >> tasklet_file_list.txt
tar tf antiadblock.tar.bz2 | sed -e 's/^\./antiadblock/' >> antiadblock_file_list.txt
tar tf commerce.tar.bz2 | sed -e 's/^\./commerce/' >> commerce_file_list.txt
tar tf fuzzing.tar.bz2 | sed -e 's/^\./fuzzing/' >> fuzzing_file_list.txt
tar tf maps_2.tar.bz2 | sed -e 's/^\./maps_2/' >> maps_2_file_list.txt
tar tf products.tar.bz2 | sed -e 's/^\./products/' >> products_file_list.txt
tar tf taxi.tar.bz2 | sed -e 's/^\./taxi/' >> taxi_file_list.txt
tar tf antirobot.tar.bz2 | sed -e 's/^\./antirobot/' >> antirobot_file_list.txt
tar tf config.tar.bz2 | sed -e 's/^\./config/' >> config_file_list.txt
tar tf gencfg.tar.bz2 | sed -e 's/^\./gencfg/' >> gencfg_file_list.txt
tar tf maps_adv.tar.bz2 | sed -e 's/^\./maps_adv/' >> maps_adv_file_list.txt
tar tf robot.tar.bz2 | sed -e 's/^\./robot/' >> robot_file_list.txt
tar tf tools.tar.bz2 | sed -e 's/^\./tools/' >> tools_file_list.txt
tar tf autocheck.tar.bz2 | sed -e 's/^\./autocheck/' >> autocheck_file_list.txt
tar tf connect.tar.bz2 | sed -e 's/^\./connect/' >> connect_file_list.txt
tar tf groups.tar.bz2 | sed -e 's/^\./groups/' >> groups_file_list.txt
tar tf market.tar.bz2 | sed -e 's/^\./market/' >> market_file_list.txt
tar tf rt-research.tar.bz2 | sed -e 's/^\./rt-research/' >> rt-research_file_list.txt
tar tf travel.tar.bz2 | sed -e 's/^\./travel/' >> travel_file_list.txt
tar tf balancer.tar.bz2 | sed -e 's/^\./balancer/' >> balancer_file_list.txt
tar tf crm.tar.bz2 | sed -e 's/^\./crm/' >> crm_file_list.txt
tar tf helpdesk.tar.bz2 | sed -e 's/^\./helpdesk/' >> helpdesk_file_list.txt
tar tf metrika.tar.bz2 | sed -e 's/^\./metrika/' >> metrika_file_list.txt
tar tf saas.tar.bz2 | sed -e 's/^\./saas/' >> saas_file_list.txt
tar tf wmconsole.tar.bz2 | sed -e 's/^\./wmconsole/' >> wmconsole_file_list.txt
tar tf billing.tar.bz2 | sed -e 's/^\./billing/' >> billing_file_list.txt
tar tf crypta.tar.bz2 | sed -e 's/^\./crypta/' >> crypta_file_list.txt
tar tf infra.tar.bz2 | sed -e 's/^\./infra/' >> infra_file_list.txt
tar tf mobile-WARNING-notfull.tar.bz2 | sed -e 's/^\./mobile-WARNING-notfull/' >> mobile-WARNING-notfull_file_list.txt
tar tf sandbox.tar.bz2 | sed -e 's/^\./sandbox/' >> sandbox_file_list.txt
tar tf yandex360.tar.bz2 | sed -e 's/^\./yandex360/' >> yandex360_file_list.txt
tar tf bindings.tar.bz2 | sed -e 's/^\./bindings/' >> bindings_file_list.txt
tar tf customer_service.tar.bz2 | sed -e 's/^\./customer_service/' >> customer_service_file_list.txt
tar tf intranet.tar.bz2 | sed -e 's/^\./intranet/' >> intranet_file_list.txt
tar tf nginx.tar.bz2 | sed -e 's/^\./nginx/' >> nginx_file_list.txt
tar tf search.tar.bz2 | sed -e 's/^\./search/' >> search_file_list.txt
tar tf yandex_io.tar.bz2 | sed -e 's/^\./yandex_io/' >> yandex_io_file_list.txt
tar tf captcha.tar.bz2 | sed -e 's/^\./captcha/' >> captcha_file_list.txt
tar tf datacloud.tar.bz2 | sed -e 's/^\./datacloud/' >> datacloud_file_list.txt
tar tf investors.tar.bz2 | sed -e 's/^\./investors/' >> investors_file_list.txt
tar tf noc.tar.bz2 | sed -e 's/^\./noc/' >> noc_file_list.txt
tar tf security.tar.bz2 | sed -e 's/^\./security/' >> security_file_list.txt
tar tf yaphone.tar.bz2 | sed -e 's/^\./yaphone/' >> yaphone_file_list.txt
tar tf cdn.tar.bz2 | sed -e 's/^\./cdn/' >> cdn_file_list.txt
tar tf delivery.tar.bz2 | sed -e 's/^\./delivery/' >> delivery_file_list.txt
tar tf it-office.tar.bz2 | sed -e 's/^\./it-office/' >> it-office_file_list.txt
tar tf partner.tar.bz2 | sed -e 's/^\./partner/' >> partner_file_list.txt
tar tf skynet.tar.bz2 | sed -e 's/^\./skynet/' >> skynet_file_list.txt
tar tf yawe.tar.bz2 | sed -e 's/^\./yawe/' >> yawe_file_list.txt
tar tf certs.tar.bz2 | sed -e 's/^\./certs/' >> certs_file_list.txt
tar tf direct.tar.bz2 | sed -e 's/^\./direct/' >> direct_file_list.txt
tar tf jupytercloud.tar.bz2 | sed -e 's/^\./jupytercloud/' >> jupytercloud_file_list.txt
tar tf passport.tar.bz2 | sed -e 's/^\./passport/' >> passport_file_list.txt
tar tf smart_devices.tar.bz2 | sed -e 's/^\./smart_devices/' >> smart_devices_file_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment