Skip to navigation Skip to content

Simon Technology Blog

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

Bash scripting “[!: Not found” error, and how to write or declare

Edit:
This is my updated code:

#!/bin/sh
files=`ls`
if [$# -ne 1 -o -f $1 ]
then
echo “Usage: $0 ”
exit 1
fi
if [! -e $1 ]
then
echo “$1 not found”
exit 1
elif [-d $1 ]then
cd $1
for f

October 18, 2021By Simo Unix and, BASH, Declaration, error, How to Write, scriptingLeave a Comment

Regular expression – Which regular expressions I should use in Common Lisp?

I am trying to learn Common Lisp and want to use regular expressions to parse text files. Which library is the easiest to use for a beginner like me? Am I correct to assume that it depends on the C

October 18, 2021By Simo Regexp expression, expressions, in Common, Library, Lisp, regular, should, Used, whichLeave a Comment

Regular expression matching URL does not contain a given string set

I need to match all that does not contain /admin/or? page = URL.

I will use it as a redirect rule in the iirf.ini file (htaccess syntax is supported).

How can I do this ?

^(?!.*(/

October 18, 2021By Simo Regexp expressions, given, INCLUDE, matching, regular, set, string, URLLeave a Comment

Regular expression – overlapping text replacement using Perl regular expression

I have a text file containing a bunch of sentences. The sentences contain spaces (spaces, tabs, new lines) to separate words composed of letters and/or numbers.
I want to find the word “123” or “

October 18, 2021By Simo Regexp expressions, overlap, perl, regular, replacement, Text, useLeave a Comment

Windows – NCAT SSL problem, certificate verification failed (self-signed certificate)

I am currently trying to use ncat with SSL to bind cmd shell in Windows to allow Kali Linux computers to connect.

On Windows computers On the Kali Linux computer, I run

ncat –exec cmd.e

October 18, 2021By Simo Windows Certificate, Certificates, Failure, NCAT, questions, signature, SSL, verification, windowsLeave a Comment

GREP Find shell foundation

1, define a command alias that is effective for all users, for example: lftps=’172.168.0.1/pub’

echo “alias lftps=’172.168.0.1/pub'” >> /etc/bashrc && source /etc/bashrc 2, display all lines

October 18, 2021By Simo Unix foundation, GREP, shellLeave a Comment

Xargs, sort, uniq command

The xargs, sort, and uniq commands are introduced by a question from LeetCode and used to understand;

The title is this: write a bash script to count a text file words.txt.

The content

October 18, 2021By Simo Unix Command, SORT, UNIQ, XargsLeave a Comment

Regular expression problem: independent location of words

Is it possible to define a regular expression pattern that checks for example. The 3 words are independent of their position in the main chord?

For example, my string is like “click here to u

October 18, 2021By Simo Regexp expression, independence, location, problem, regular, WordLeave a Comment

Shell script – text processing and programming principle

1. Text processing tools

wc command

wc (Word count) is used to count the number of characters in a text file

15 is the number of lines 78 is the number of characters 805 is the fi

October 18, 2021By Simo Unix and programming, principle, Processing, Script, shell, TextLeave a Comment

YUM Install Apache PHP MySQL

Installation:

yum install -y httpd php

rpm -qa httpd php

httpd-2.2.15-54.el6.centos.x86_64

php-5.3.3 -48.el6_8.x86_64

Modify the apache configuration file:

vim /

October 18, 2021By Simo Unix apache, install, mysql, PHP, YumLeave a Comment

Posts navigation

Page 1 … Page 61 Page 62 Page 63 … 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