1624589959
This new ransomware is cut from a different cloth. Let us discuss
#developer
1624589959
This new ransomware is cut from a different cloth. Let us discuss
#developer
1594622280
When writing shell scripts you may be in a situation where you need to pass a multiline block of text or code to an interactive command, such as [tee](https://linuxize.com/post/linux-tee-command/)
, cat
, or [sftp](https://linuxize.com/post/how-to-use-linux-sftp-command-to-transfer-files/)
.
In Bash and other shells like Zsh, a Here document (Heredoc) is a type of redirection that allows you to pass multiple lines of input to a command.
The syntax of writing HereDoc takes the following form:
[COMMAND] <<[-] 'DELIMITER'
HERE-DOCUMENT
DELIMITER
Copy
<<
and the delimiting identifier.<<-
, will cause all leading tab characters to be ignored. This allows you to use indentation when writing here-documents in shell scripts. Leading whitespace characters are not allowed, only tab.In this section, we will look at some basic examples of how to use heredoc.
Heredoc is most often used in combination with the cat command.
#bash #bash heredoc #ssh
1595303760
In this tutorial, we will cover the basics of the select
construct in Bash.
The select
construct allows you to generate menus.
select
ConstructThe select
construct generates a menu from a list of items. It has almost the same syntax as the [for](https://linuxize.com/post/bash-for-loop/)
loop:
select ITEM in [LIST]
do
[COMMANDS]
done
Copy
The [LIST]
can be a series of strings separated by spaces, a range of numbers, output of a command, an array, and so on. A custom prompt for the select
construct can be set using the PS3
environment variable.
When the select
construct is invoked, each item from the list is printed on the screen (standard error), preceded with a number.
If the user enters a number that corresponds to the number of one of the displayed items, then the value of [ITEM]
is set to that item. The value of the selected item is stored in the variable REPLY
. Otherwise, if the user input is empty, the prompt and the menu list are displayed again.
Theselect
loop will continue to run and prompt for user input until the[break](https://linuxize.com/post/bash-break-continue/)
command is executed.To demonstrate how the select
construct works, let’s take a look at the following simple example:
PS3="Enter a number: "
select character in Sheldon Leonard Penny Howard Raj
do
echo "Selected character: $character"
echo "Selected number: $REPLY"
done
#bash #bash select construct #bash select
1599275499
php code for updating data in mysql database. Here, i will show you how to fetch and update data from mysql in php.
https://www.tutsmake.com/php-code-for-update-data-in-mysql-database/
#how to edit data in php using form #how to update data in php using form mysqli #how to fetch and update data from database in php #php code for updating data in mysql database #php #update
1619799996
Real Time Object Detection in Python And OpenCV
Github Link: https://github.com/Chando0185/Object_Detection
Blog Link: https://knowledgedoctor37.blogspot.com/#
I’m on Instagram as @knowledge_doctor.
Follow Me On Instagram :
https://www.instagram.com/invites/contact/?i=f9n3ongbu8ma&utm_content=jresydt
Like My Facebook Page:
https://www.facebook.com/Knowledge-Doctor-Programming-114082097010409/
#python project #object detection #python opencv #opencv object detection #object detection in python #python opencv for object detection