expect command
Linux

Expect command and how to automate shell scripts like magic

In the previous post, we talked about writing practical shell scripts and we saw how it is easy to write a shell script. Today we are going to talk about a tool that does magic to our shell scripts, that tool is the Expect command or Expect scripting language. Expect command or expect scripting language is […]

" data-link="https://twitter.com/intent/tweet?text=Expect+command+and+how+to+automate+shell+scripts+like+magic&url=https%3A%2F%2Flikegeeks.com%2Fexpect-command%2F&via=">">Tweet
163 Shares
shell script
Linux

How to write practical shell scripts

In the last post, we talked about regular expressions and we saw how to use them in sed and awk for text processing, and we discussed before Linux sed command and awk command. During the series, we wrote small shell scripts, but we didn’t mix things up, I think we should take a small step further […]

" data-link="https://twitter.com/intent/tweet?text=How+to+write+practical+shell+scripts&url=https%3A%2F%2Flikegeeks.com%2Fwrite-shell-script%2F&via=">">Tweet
157 Shares
regex tutorial
Linux

Regex tutorial for Linux (Sed & AWK) examples

In order to successfully work with the Linux sed editor and the awk command in your shell scripts, you have to understand regular expressions or in short regex. Since there are many engines for regex, we will use the shell regex and see the bash power in working with regex. First, we need to understand […]

" data-link="https://twitter.com/intent/tweet?text=Regex+tutorial+for+Linux+%28Sed+%26+AWK%29+examples&url=https%3A%2F%2Flikegeeks.com%2Fregex-tutorial-linux%2F&via=">">Tweet
171 Shares
awk command
Linux

30 Examples for Awk Command in Text Processing

In the previous post, we talked about sed command and we saw many examples of using it in text processing and we saw how it is good in this, but it has some limitations. Sometimes you need something powerful, giving you more control to process data. This is where awk command comes in. The awk […]

" data-link="https://twitter.com/intent/tweet?text=30+Examples+for+Awk+Command+in+Text+Processing&url=https%3A%2F%2Flikegeeks.com%2Fawk-command%2F&via=">">Tweet
176 Shares
sed Linux
Linux

31+ Examples for sed Linux Command in Text Manipulation

In the previous post, we talked about bash functions and how to use them from the command line directly and we saw some other cool stuff. Today we will talk about a very useful tool for string manipulation called sed or sed Linux command. Sed is used to work with text files like log files, […]

" data-link="https://twitter.com/intent/tweet?text=31%2B+Examples+for+sed+Linux+Command+in+Text+Manipulation&url=https%3A%2F%2Flikegeeks.com%2Fsed-linux%2F&via=">">Tweet
224 Shares
bash functions
Linux

Bash Scripting Part6 – Create and Use Bash Functions

Before we talk about bash functions, let’s discuss this situation. When writing bash scripts, you’ll find yourself that you are using the same code in multiple places. If you get tired of writing the same lines of code again and again in your bash script, it would be nice to write the block of code […]

" data-link="https://twitter.com/intent/tweet?text=Bash+Scripting+Part6+-+Create+and+Use+Bash+Functions&url=https%3A%2F%2Flikegeeks.com%2Fbash-functions%2F&via=">">Tweet
230 Shares
Linux señales y trabajos
Linux

Linux Bash Scripting Part5 – Signals and Jobs

In the previous post, we talked about input, output, and redirection in bash scripts. Today we will learn how to run and control them on a Linux system. Till now, we can run scripts only from the command line interface. This isn’t the only way to run Linux bash scripts. This post describes the different ways […]

" data-link="https://twitter.com/intent/tweet?text=Linux+Bash+Scripting+Part5+-+Signals+and+Jobs&url=https%3A%2F%2Flikegeeks.com%2Flinux-bash-scripting-awesome-guide-part5%2F&via=">">Tweet
324 Shares
Linux shell scripting Input, Output, and Redirection
Linux

Shell Scripting Part4 – Input, Output, and Redirection

In the previous post, we talked about parameters and options in detail, today we will talk about something very important in shell scripting which are Input, Output, and Redirection. You can display the output from your shell scripts in two ways: Display output on the screen. Send output to a file. Standard File Descriptors Everything […]

" data-link="https://twitter.com/intent/tweet?text=Shell+Scripting+Part4+-+Input%2C+Output%2C+and+Redirection&url=https%3A%2F%2Flikegeeks.com%2Fshell-scripting-awesome-guide-part4%2F&via=">">Tweet
225 Shares
Linux Bash Scripting Parameters and Options
Linux

Linux Bash Scripting Part3 – Parameters and Options

So far you’ve seen how to write Linux bash scripts that do the job without user inputs. Today we will continue our series about Linux bash scripting. I recommend you to review the previous posts if you want to know what we are talking about. Bash scripting basics Bash scripting – For & while loops […]

" data-link="https://twitter.com/intent/tweet?text=Linux+Bash+Scripting+Part3+-+Parameters+and+Options&url=https%3A%2F%2Flikegeeks.com%2Flinux-bash-scripting-awesome-guide-part3%2F&via=">">Tweet
244 Shares
Linux Bash Scripting For and While Loops
Linux

Bash Scripting Part2 – For and While Loops With Examples

In the previous post, we talked about how to write a Bash script, and we saw how Bash scripting is awesome. In this tutorial, we will look at the for command, the while command, and how to make loops to iterate over a series of values.   The for loop The for command enables you to perform a loop […]

" data-link="https://twitter.com/intent/tweet?text=Bash+Scripting+Part2+-+For+and+While+Loops+With+Examples&url=https%3A%2F%2Flikegeeks.com%2Fbash-scripting-step-step-part2%2F&via=">">Tweet
268 Shares