Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: OS

Operating System (Operating System, referred to as OS) is a computer program that manages and controls computer hardware and software resources. It is the most basic system software that runs directly on the “bare metal”. Any other software must be supported by the operating system to run .

Regular expression – check if there is only space in the string

How to check if there are only spaces in a string?

I want to use conditions in an if() statement.

For example,

str<-" "< br />#check if str has only white spaces? example usage
i

October 18, 2021By Simo Regexp check, expression, in, is there, only, regular, stringLeave a Comment

Signal capture trap and its usage in shell

kll -l command to view all signals

Some of the most commonly used signal values ​​are as follows

#! /bin/bash
trap’echo “good”‘ 2 Here you can use numeric numbers, signal names or abbreviations
sleep 100 When the above script is running, if We a

October 18, 2021By Simo Unix and its, Capture, shell, signal, TrapLeave a Comment

Regular expression – parts matching with EGREP regular expression

I want to know, if I use egrep ((GNU grep)2.5.1), I can select a part of the matching text, for example:

grep’^([a-zA-Z.-]+)[0-9]+’ ./file.txt So I only get the matching part between th

October 18, 2021By Simo Regexp EGREP, expressions, matching, partial, regularLeave a Comment

Regular expression – What is the best way to make a string operation in a shell script?

I have a path as a string in a shell script, which can be absolute or relative:

/usr/userName/config.cfg< /p> or

../config.cfg

I want to extract the file name (the part after the

October 18, 2021By Simo Regexp expression, method, middle, operation, optimal, procedure, regular, Script, shell, string, whatLeave a Comment

Shell script printing and other waist triangles

Shell script printing isosceles triangle #!/bin/bash

for ((i=1;i<= 9;i++)) do for ((j=9;j>=i;j- -))
do
echo -n ” ”
done

for ((j=2;j<= i;j++)) do echo -n "*" done for ((j=1

October 18, 2021By Simo Unix and other waist triangles, print, Script, shellLeave a Comment

Shell – interactive input

Interactive input and for statement (8-15)

Interactive input

1, read Usage: The read command can define multiple variable values ​​at the same time, and the input content can be used as

October 18, 2021By Simo Unix input, interaction, shellLeave a Comment

Shell script prints the right angle triangle

The shell script prints a right-angled triangle #! /bin/ bash

for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done

#! /bin/bash

for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done

October 18, 2021By Simo Unix print, right angle triangle, Script, shellLeave a Comment

DHCP Server – Dynamic Host Configuration Protocol

The main configuration file: /etc/dhcp/dhcpd.conf is almost empty
Reference template: /usr/share/doc/dhcp-4.2.5/dhcpd.conf .sample
IP information and related lease information: /var/lib/dhcpd/dhcpd

October 18, 2021By Simo Unix configuration, DHCP, Dynamics, host, protocol, serverLeave a Comment

Regular expression – Why does this frontal assertion does not work when anchored to the beginning of a string?

Why does this post-assertion not work when it is fixed at the front of the string? Run the following code, and you will see that the first test passes, but the second test only passes the ^ anchor

October 18, 2021By Simo Regexp Anchor, assertion, back, expressions, front, inseparable, regular, set, Start, string, This, time, whyLeave a Comment

Bash – Extract many pre-guides from a huge text file

I have a huge text file. I want to extract the first 532541 lines of it and store them in another file. Selecting the text with the mouse and executing ctrl c is obviously not a feasible Solution.<

October 18, 2021By Simo Unix BASH, Document, extraction, Huge, line, Many, Medium, one, preamble, TextLeave a Comment

Posts navigation

Page 1 … Page 22 Page 23 Page 24 … Page 88
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