SShortSingh.
Back to feed

VNSGU TYBCA Sem 5: Three Shell Script Methods to Count Vowels and Convert Case

0
·1 views

A technical guide published on DEV Community addresses VNSGU TYBCA Semester 5 Linux practical Set B, demonstrating how to count vowels and convert string case using shell scripting. Three distinct approaches are covered: a Bash for-loop with a case statement, the tr command combined with wc, and grep with wc. Each method achieves the same results — counting vowels and producing uppercase or lowercase output — but varies in complexity and the Linux tools involved. The for-loop and case approach is highlighted as the most suitable for exam settings where demonstrating core scripting logic is expected. The guide also notes that Bash parameter expansion features like the double-caret and double-comma operators may not work in older shell environments.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Senior Java Developer Argues Lombok Saves Lines but Creates Hidden Long-Term Bugs

A developer with eleven years of enterprise Java experience contends that while Project Lombok reduces boilerplate code dramatically, it introduces hard-to-debug problems in real codebases. Annotations like @Data can cause serious issues with JPA entities, where auto-generated equals(), hashCode(), and toString() methods conflict with Hibernate's identity and lazy-loading mechanisms. A seemingly harmless log statement using a Lombok-generated toString() can trigger unintended database queries or even crash a logging pipeline through bidirectional association recursion. Attempts to fix these issues by layering additional Lombok annotations, such as @ToString(exclude) and @EqualsAndHashCode, ultimately defer complexity rather than eliminate it. The author's core argument is that hand-written methods remain visible, searchable, and fully owned in source code, whereas generated behavior is hidden and requires extra tooling knowledge from every future developer on the project.

0
ProgrammingDEV Community ·

How to Build a React Client Intake Form with File Uploads Using Fillo SDK

Developers can build a client intake form using Vite and React that collects both structured answers and uploaded files in a single submission. The form captures details such as the client's name, work email, project outcome, an optional target date, and up to five reference files. Fillo's SDK handles schema definition, field validation, and file uploads directly from the browser to connected storage services like Google Drive, Amazon S3, or Box, without routing files through the app's own server. A preview mode is available for testing the form locally without an account, though file uploads remain disabled and responses are not recorded in that state. Developers are advised to connect their own storage and run through a checklist of edge cases before deploying the form for real client use.

0
ProgrammingDEV Community ·

Nims University and World Health Summit Alliance Launch Climate & Wellbeing Hackathon

Nims University Rajasthan and the World Health Summit Academic Alliance, in partnership with Khushi Baby, have opened registrations for the Climate & Wellbeing Hackathon. The virtual competition invites participants to develop AI, remote sensing, and data-driven solutions addressing climate change and public health challenges. Problem tracks cover areas such as heat stress forecasting, urban rooftop vulnerability mapping, air pollution routing, and vector-borne disease prediction. Teams must submit their solutions as pitch decks, with a virtual jury review scheduled for August 20, 2026, and winners to be announced between August 23 and 24, 2026.

0
ProgrammingDEV Community ·

How Thousands of Independent Nodes Keep Blockchain Networks Decentralized

Blockchain networks achieve decentralization by having thousands of independent computers, called nodes, each maintain a full copy of the ledger and verify every transaction themselves without relying on a central authority. Bitcoin currently operates with over 15,000 such nodes worldwide, each independently validating blocks against protocol rules. Different node types exist for different purposes, including full nodes for maximum security, lightweight nodes for mobile wallets, and archive nodes used by analytics platforms. Unlike traditional client-server systems, blockchains use peer-to-peer architecture where each node connects to 8–20 peers, spreading transaction data exponentially across the network within seconds. This design makes the network resistant to censorship, regional outages, and single points of failure, as even a fraction of active nodes can keep the system running.