Skip to navigation Skip to content

Simon Technology Blog

  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Bash – Add multiple lines at the beginning of the file

I have many files in the same subdirectory as follows:

10 A
11 T
12 A
13 C
15 A Two columns, the first line always starts with the number 10.

I just want to Add lines 1-9 at the beginn

October 18, 2021By Simo Unix Add, BASH, file, line, More, StartLeave a Comment

Win7 installed Python2 and Pyhton3

python2 version: 2.7.16

python3 version: 3.7.4

Note: To install python3, you need to type win7 sp1 patch! Install python3 requires win7 sp1 patch! Install python3 requires win7 sp1 patc

October 18, 2021By Simo Windows installation, python, python2, Python3, Simultaneous, Win7Leave a Comment

VIM compiler related knowledge

Vim compiler related knowledge 1. About the Vim compiler In popular Linux operating systems, a super easy-to-use text editor is installed by default-the name is “vim” , vimis an upgraded version of

October 18, 2021By Simo Unix compiler, Knowledge, Related, VIMLeave a Comment

Third, RPM Package Management – Yum Online Management

1. IP address configuration

guarantee linux can Normal Internet access

2, network yum source code (default is configured, only Just need to understand it)

3. Commonly used yum com

October 18, 2021By Simo Unix management, online, package, Rational, rpm, Third, YumLeave a Comment

Regular expression pattern explanation

I’m fairly new to regular expressions, I recently used a regular expression in a perl script, and I can’t figure it out:

$groups= qr/\(([^()]+|(??{$groups}))*\)/; Any help will be greatly app

October 18, 2021By Simo Regexp explanation, expression, mode, regularLeave a Comment

Shell script for, while, case statement details and case

################for loop statement structure#############
When using for loop statement, you need Specify a variable and a list of possible values, and repeat the same command sequence for each dif

October 18, 2021By Simo Unix Case, detailed, Script, shell, statementLeave a Comment

Regular expression – replace the escape character in PowerShell

I have a string of…

“some text \\computername.example.com\admin$ “. How do I do the substitution so my final result is just “computername”

My question does not seem to know how to esc

October 18, 2021By Simo Regexp Characters, escape, expressions, Positive, PowerShell, replacementLeave a Comment

Shell – open file with spaces in Windows by command prompt

I want to open a file (especially a video file) in its default program through a script. When I encounter a file name with spaces, it is treated as several parameters, This is not surprising:

October 18, 2021By Simo Unix file, spaceLeave a Comment

Shell script does not use Data functions to implement a date query

The shell script realizes the query N days before or N days after the specified date 1 1 span> #!/bin/bash
2 func(){
3 read -p “Please enter the year, month and day (format: 2019-01-01): ”

October 18, 2021By Simo Unix data, Date, function, Implementation, no, query, Script, shellLeave a Comment

Regular expression, what is obtained after the second occurrence

I have a string in the following format:

TEXT #### TEXT #### SPECIALTEXT

I need Get SPECIALTEXT, basically the content after the second occurrence of ####. I can’t do it. Thank you

<

October 18, 2021By Simo Regexp appearance, expression, Get, regular, Second, string, whatLeave a Comment

Posts navigation

Page 1 … Page 51 Page 52 Page 53 … Page 590
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress