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

Tag: shell

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

OSX – How to run the shell script using Spotlight?

Is there a way to use Spotlight to run shell scripts on Mac OS X 10.6? I want to call a shell script directly from Spotlight without opening the terminal. save your shell script with a .command

October 16, 2021By Simo Macos how to use, OSX, run, Script, shell, SpotlightLeave a Comment

Linux-shell script foundation – 2

1,User Group Add user
useradd
-u UID
-o -g specify GID or group name
-c comment information
-d home directory
-s shell
-G additional group
-r system user -m home directory, system user
-M

October 16, 2021By Simo Linux foundation, linux, Script, shellLeave a Comment

[Linux Shell] CentOS Some use shell management commands Collection (1) Continuous update

Check the system version rpm -q centos-release

View the kernel
uname -r
View the top 10 processes currently occupying the largest memory
ps aux |sort -nrk 4 |head -n 10
View the top 10 proce

October 15, 2021By Simo Centos centos, collection, Command, continuous, easy to use, Linux Shell, management, one, shell, Some, UpdateLeave a Comment

Hadoop – Apache Spark runs Spark-shell on Yarn error

I downloaded spark-2.1.0-bin-hadoop2.7.tgz from http://spark.apache.org/downloads.html. I have Hadoop HDFS and YARN with $ start-dfs.sh and $start-yarn.sh start. But running $spark-shell –master ya

October 12, 2021By Simo Hadoop apache, error, Hadoop, running, shell, SPARK, YarnLeave a Comment

ReactJS – Using the application shell architecture First serverside rendering and offline

How to use SSR and offline priority features and merge the two technologies together?

SSR is able to render my javascript template in order to load the application faster and flicker-free, an

October 3, 2021By Simo System Architecture Applications, architecture, First, offline, Programs, Reactjs, rendering, Serverside, shell, usageLeave a Comment

How to retrieve the output of the previous command and save it in the variable in the Python interactive shell?

Suppose I run an expensive operation foo(), which returns a large list, but I forgot to save the output of foo() in a variable. Assuming I run foo() again, I will get a different output.

<

October 2, 2021By Simo Search Engines Command, how to retrieve, interactive, Medium, Output, python, save, shell, the previous, variablesLeave a Comment

Posts navigation

Page 1 … Page 5 Page 6 Page 7
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