Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
Sichere ProgrammierungVisual Studio Code 1.141 (Insiders)(07.10.2026 um 19:00 Uhr)
•
Linux Tipps & Hardening[$] Comparing Chromium development at Google and Igalia(30.09.2026 um 16:16 Uhr)
•
Sichere ProgrammierungReports from the 2026 Python Language Summit(30.09.2026 um 16:32 Uhr)
•
KI & AI VideosJulian Goldie SEO: NEW LongCat Preview Just Dropped! 🔥(30.09.2026 um 16:00 Uhr)
•
Linux Tipps & HardeningA unified OS installer in systemd (asg2026)(30.09.2026 um 00:00 Uhr)
•
Windows Tipps & SecurityContainers without a new runtime: sdme on systemd-nspawn (asg2026)(30.09.2026 um 00:00 Uhr)
•
Linux Tipps & Hardeningsingle-file containers with statically linked systemd (asg2026)(30.09.2026 um 00:00 Uhr)
•
Linux Tipps & HardeningForget "podman generate systemd": How Quadlet Really Works (asg2026)(30.09.2026 um 00:00 Uhr)
•
IT Security VideoLiveOverflow: Why Old Threat Models Are Dead #shorts(30.09.2026 um 15:55 Uhr)
••
Sichere ProgrammierungVisual Studio Code 1.141 (Insiders)(07.10.2026 um 19:00 Uhr)
•
Linux Tipps & Hardening[$] Comparing Chromium development at Google and Igalia(30.09.2026 um 16:16 Uhr)
•
Sichere ProgrammierungReports from the 2026 Python Language Summit(30.09.2026 um 16:32 Uhr)
•
KI & AI VideosJulian Goldie SEO: NEW LongCat Preview Just Dropped! 🔥(30.09.2026 um 16:00 Uhr)
•
Linux Tipps & HardeningA unified OS installer in systemd (asg2026)(30.09.2026 um 00:00 Uhr)
•
Windows Tipps & SecurityContainers without a new runtime: sdme on systemd-nspawn (asg2026)(30.09.2026 um 00:00 Uhr)
•
Linux Tipps & Hardeningsingle-file containers with statically linked systemd (asg2026)(30.09.2026 um 00:00 Uhr)
•
Linux Tipps & HardeningForget "podman generate systemd": How Quadlet Really Works (asg2026)(30.09.2026 um 00:00 Uhr)
•
IT Security VideoLiveOverflow: Why Old Threat Models Are Dead #shorts(30.09.2026 um 15:55 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Scripting Series – Part 5 of 8

Let's continue our shell scripting series in Linux. Today we will be looking at the 'Continue'command and the use cases for this command to be used in your script. In Linux shell scripting, the continue command is used inside loops…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Let's continue our shell scripting series in Linux.



Today we will be looking at the 'Continue'command and the use cases for this command to be used in your script.



In Linux shell scripting, the continue command is used inside loops (like for, while, or until) to skip the rest of the current iteration and move on to the next one.



🔁 How it works:

• When continue is hit, the script jumps straight to the next loop cycle, bypassing any remaining commands in the current iteration.



🔧 IT Use Case: Skipping Certain Files During Batch Processing

Scenario: A system administrator writes a script to scan a directory and apply security patches or audits to all .sh files, but wants to skip any files with the word test in the filename.




Image description



Benefit: This ensures that test scripts are excluded from production-level audits, reducing risk and processing time. It makes the automation cleaner and more intelligent.



💼 Business Use Case: Processing Customer Records and Skipping Inactive Accounts

Scenario: A business analyst creates a shell script to analyze customer records from a CSV file. The analyst wants to skip rows where the status is inactive.




Image description



Benefit: The script saves time and resources by ignoring irrelevant data, ensuring the analysis focuses only on engaged customers. This improves marketing targeting and ROI calculations.



The -r option in the read command in Bash stands for "raw", and it prevents backslashes () from being interpreted as escape characters.



💡 When to Use -r?

Always use -r unless you explicitly want to interpret escape sequences like \n, \t, or \. It's especially important when reading file paths, raw strings, or data from CSV files to avoid unexpected transformations.







Create the script in VIM.

Image description




Write the script in VIM and save it.

Image description




Image description




Apply the necessary permissions, so the script can be executed.

Image description




If we do a ls –ltrh we can confirm that the script has been created and the execute permissions has been applied to it, as it is in green colour.

Image description




Execute the script with ./

Image description




Output after executing the script.

Image description



You can say that only the false statements are displaying, not the true statements.







Stay tuned, part 6 in the series coming tomorrow!




Connect with me on LinkedIn



#30DaysLinuxChallenge #RedHatEnterpriseLinux

#CloudWhistler #CloudEngineer #Linux

#DevOps #RedHat #OpenSource

#CloudComputing #Automation

#CloudEngineer #SysAdmin #ITSecurity #TechTips #BusinessIT #Leadership

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph3 Knoten / 2 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Scripting Series – Part 5 of 8

Thematisch verwandte Begriffe: Scripting, Series, Part · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-82307 | Improper neutralization of special elements used in an SQL command ('SQL…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag