Tag: extract
Learn how to – Extract deb package on Ubuntu / Debian Linux System
Learn how to – Extract deb package on Ubuntu / Debian Linux System. deb is a format and software packaging extension for the Linux distribution from Debian family and its derivatives. In this guide, we will explore how to extract a .deb package file. This is relevant to Software developers working on Debian related applications. …
Learn how to – Extract deb package on Ubuntu / Debian Linux SystemRead More
C++: How to extract file extension from a path string using Boost & C++17 FileSystem Library
In this article we will dicuss different ways to extract extension from a given path string using different technique i.e. C++17 FileSystem Library Boost FileSystem Library C++ STL Suppose given file is, Advertisements /home/user/sample/temp/logs.out It’s extension should be .out. Fetch extension of a given file using Boost Filesystem Library & C++17 Both boost filesystem library …
Python: How to unzip a file | Extract Single, multiple or all files from a ZIP archive
In this article we will discuss different ways to unzip or extract single, multiple or all files from zip archive to current or different directory. In Python’s zipfile module, ZipFile class provides a member function to extract all the contents from a ZIP archive, Advertisements ZipFile.extractall(path=None, members=None, pwd=None) It accepts following arguments : path : …
Python: How to unzip a file | Extract Single, multiple or all files from a ZIP archiveRead More
Extract Numbers from String in Python
In this article, we will learn to extract the numbers from a given string in Python. Table Of Contents What is a String in Python Extract numbers from string using isdigit() in List Comprehension : Extract numbers from string using re.findall() method Extract numbers from string using split() and append() methods : Extract numbers from …
Extract substring between two markers in Python
In this article, we will learn to extract a substring between two markers in a string using Python Programming Language. But before that we should know what is a substring in Python programming language? A substring is a sequence of characters which is a part of a string often created using methods like slicing or …
Extract specific columns to new DataFrame as copy in Pandas
Multiple times while processing data, it is important to extract specific columns and store them in a new DataFrame. In this article, we will cover multiple ways to achieve that. Table of Contents Preparing Dataset Select subset of columns using copy() function Select subset of columns using filter() function Select subset of columns using drop() …
Extract specific columns to new DataFrame as copy in PandasRead More
Extract Odd numbers from a List in Python
In this article, we will discuss different ways to select odd numbers from a list in Python. Table Of Contents Introduction Method 1: Using List Comprehension Method 2: Using List Comprehension & AND operator Method 3: Using For Loop Summary Introduction Suppose we have a list, that contains only numbers. Like this, Advertisements [10, 11, …
Extract even numbers from a list in Python
In this article, we will discuss different ways to select even numbers from a list in Python. Table Of Contents Introduction Method 1: Using List Comprehension Method 2: Using List Comprehension & AND operator Method 3: Using For Loop Summary Introduction Suppose we have a list, that contains only numbers. Like this, Advertisements [10, 11, …
How to extract a tar file in Python?
In this article, we will learn how to extract a tar file in python. we will be discussing multiple approaches to extract a tar file. Table Of Contents Introduction Extracting a tar file using extractall() in Python Extracting a tar file using extract() method Extracting a tar file using _extract_member() and getmembers() Extracting a tar …
Learn how to – Extract .xz files on Linux – CenOS / Ubuntu / Debian
Learn how to – Extract .xz files on Linux – CenOS / Ubuntu / Debian. How can I extract .tar.xz or .xz files on my Linux system?. xz is a lossless compression program and file format which incorporates the LZMA/LZMA2 compression algorithms. The XZ format is a single-file compression format and does not offer archiving …
Learn how to – Extract .xz files on Linux – CenOS / Ubuntu / DebianRead More