The document discusses various shell scripting tools including grep, sed, and awk. It provides descriptions and examples of how to use grep to search for patterns in files using regular expressions. It also covers sed for stream editing to find and replace text. Finally, it discusses awk for text processing and programming with actions based on patterns in fields and records.
The document discusses topics related to UNIX including regular expressions, grep commands, UNIX shells, shell environment variables, and shell scripting. The agenda covers regular expressions and grep, UNIX shells, shell environment, and shell scripting. It provides examples and explanations of regular expressions, grep family commands, popular UNIX shells like Bourne shell, Korn shell, C shell, and Bourne-Again shell. It also discusses shell environment variables and how to set them as well as an introduction to shell scripting.
This document provides an overview and introduction to Linux power tools. It covers topics such as the basics of streams, pipes, redirection, find, grep, sed, awk, xargs, and scripting. The document is divided into 7 parts that cover these topics in an introductory manner with the goal of making users more efficient and effective rather than becoming experts. Examples are provided throughout to demonstrate how to use many common Linux utilities and concepts.
The document provides an overview of various Unix/Linux command line concepts across 5 chapters. It describes commands for listing files and directories (ls), creating directories (mkdir), changing directories (cd), viewing the current directory (pwd), copying, moving and removing files (cp, mv, rm), searching files (grep), viewing processes (ps), running jobs in background (&), managing jobs (jobs, fg, bg) and killing processes (kill). It also covers file permissions (chmod), symbolic and hard links (ln), input/output redirection (> ,|), piping (|) and getting help (man, whatis).
This document discusses shells and shell scripting in Linux. It provides information on common Linux shells like Bash, Bourne shell, C shell, etc. It describes the basic functions of shells like command interpretation, I/O redirection, variables, parameters and more. Shell scripts allow automating tasks and complex series of commands. The document also covers shell script basics, special parameters, variables, I/O redirection operators and more shell scripting concepts.
The document provides an overview of the grep command, a text manipulation utility used for finding patterns in files or text. It details the syntax, options, exit statuses, and the use of regular expressions with examples. Additionally, the document covers advanced features, such as special characters and using grep with shell pipes.
This document provides 15 examples of using the grep command in Linux. Some key examples include:
1) Searching for a string in a single file or multiple files.
2) Performing case-insensitive searches with grep -i.
3) Using regular expressions and modifiers like ?, *, + to control matching.
4) Finding full words with grep -w, or lines before/after a match with grep -A, -B, and -C.
This document provides 15 examples of practical grep command usage in Linux/UNIX. It begins with basic uses like searching for a string in a single file or multiple files. It then demonstrates more advanced features such as ignoring case, using regular expressions to match patterns, highlighting search results, counting/inverting matches, and displaying line numbers. Overall, the examples progress from introductory to more complex uses of grep flags and operations to help both new and experienced users better utilize this powerful search tool.
15 practical grep command examples in linux : unixchinkshady
This document provides 15 examples of using the grep command in Linux. It begins with basic uses like searching for a string in a single file or multiple files. It then covers more advanced techniques like case-insensitive searching, using regular expressions, searching for full words only, and displaying lines around matches. Each example is accompanied by an explanation and code sample to demonstrate the grep functionality. The overall document serves as a tutorial for both new and experienced users to learn practical applications of the grep command.
This document provides an overview of scripting and the shell. It discusses shell basics including editing commands and setting editing modes. It covers pipes and redirection, variables and quoting, common filter commands like cut, sort, uniq, and wc. It also discusses the tee, head, tail, grep, bash scripting, regular expressions, Perl programming including variables, arrays, regular expressions and input/output. Finally, it briefly introduces Python scripting.
Linux is an open-source operating system that provides free and secure software. It allows applications and users to access computer devices and functions through the kernel, which manages communication between hardware, software, and processes. Files, directories, programs, and devices are all treated as files in the Linux file system hierarchy, accessed through commands like ls, mkdir, and rmdir.
grep is a command line utility that searches for patterns in files. It searches the given file(s) for lines containing a match to the given strings or regular expressions and outputs the matching lines. By default, grep prints the matching lines. The name "grep" derives from a similar operation using the Unix/Linux text editor ed. grep uses regular expressions to search for text patterns that can match multiple characters and patterns in text. It has many options to customize searches, such as ignoring case, counting matches, inverting matches, and more.
This document provides an overview of scripting and shell basics. It discusses common shell commands like cut, sort, uniq, wc, head, tail, tee, grep and pipes. It also covers basic bash scripting, regular expressions, and an introduction to Perl programming. The document is presented as lecture notes covering key topics like shell editing commands, I/O redirection, variables, filters and options for commands.
This document provides 15 examples of using the Linux grep command to search files for text patterns. Some key examples include searching for a string in single or multiple files, ignoring case, using regular expressions to match patterns, displaying lines before/after/around matches, inverting matches, counting matches, and highlighting matched text. The examples demonstrate many useful grep options for finding text in files.
Unix is an operating system that provides an interface between users and hardware. It manages storage, I/O devices, and allows for multi-tasking and multi-user access. The Unix operating system originated in 1969 and has evolved over time with contributions from various universities and companies. It uses a kernel to manage interactions between users, applications, and hardware. The shell is the interface that users interact with to run commands and programs on the system.
The document provides an overview of operating systems and introduces the command line interface. It discusses how the kernel and shell work together, with the shell receiving commands from the user and passing them to the kernel as system calls. Common Linux commands like ls, cd, touch, and rm are introduced. The document also discusses the Bash shell, command line tasks, globbing patterns, and the pipe feature. It provides a brief introduction to Powershell as the default shell for Windows, covering cmdlets, aliases, and applications.
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
The document provides an overview of Unix and shell scripting. It discusses what Unix is, its architecture including the kernel, shell, commands, and filesystem. It then covers what shell scripts are, their components and syntax. The document provides examples of shell script code and discusses how to invoke scripts, execute them in background, and useful metacharacters. It also covers various Unix commands like ls, cd, grep, find and their usage.
The document outlines a workshop on Unix systems and commands for evolutionary biology, held in Leipzig, Germany, from April 3rd to 19th, 2013. It covers essential Unix commands such as grep, cut, and sort, along with their applications in bioinformatics, emphasizing the Unix philosophy of using small, specialized programs that can be combined for complex tasks. The session includes practical exercises and discussions on data analysis techniques, reinforcing the utility of Unix in biological data processing.
Information about linux operating systemPriyankaMate4
This document provides a comprehensive overview of basic Linux commands categorized into various functions such as file management, process management, user management, and text processing. It offers specific commands for tasks like changing directories, managing files, monitoring processes, and handling text. Additionally, it includes examples and explanations of common command usage to facilitate understanding and application.
The document discusses Linux commands for file management and viewing. It describes commands for navigating directories (cd), changing file permissions (chmod), copying files (cp), finding files (find), listing directory contents (ls), creating and removing directories (mkdir, rmdir), moving and renaming files (mv), viewing file contents (cat, head, tail), comparing files (cmp, diff), searching files (grep), and more. It also covers commands for compressing, archiving, and backing up files like tar, gzip, zip, and commands for counting, sorting, and filtering file contents.
The document discusses the grep command in Linux and its uses for searching files for text patterns. Grep searches files for lines containing a specified pattern. Variants egrep and fgrep are also available. The document provides examples of using grep to search a file called "superheroes.txt" for various words and regular expressions. It also lists some basic regular expression syntax supported by grep like wildcards, character classes, and alternation.
The document outlines various Linux commands and their functionalities, including how to use pipes and semicolons to combine commands, the echo command with escape options, tools like cal and who, and file permissions management via chmod and chown. It details internal and external commands, presents the expr command for computational and string handling, and explains how to manipulate permissions and file ownership. Additionally, it describes the different methods for changing file permissions, using symbolic and absolute forms.
This document provides an overview of common UNIX commands for navigating directories, listing files, editing text, searching for files and strings, compressing files, and more. It describes commands like ls, cd, pwd, vi, grep, find, tar, gzip and man for viewing manual pages. It also explains concepts like pipes, redirection, environment variables and basics of the awk command for text manipulation.
The document provides an introduction to UNIX operating systems, detailing their architecture, major components, and the role of the kernel, shell, and file management. It covers essential commands for file handling, user management, permissions, and regular expressions, along with explanations of file attributes and links. Additionally, it describes how to perform various administrative tasks within a UNIX environment.
This document provides an overview of useful Bash one-liners and commands for tasks like manipulating text and files, working with variables and loops, remote access, and basic system utilities. It covers core Bash concepts like pipes, redirection, grep, awk, sort, and explains how to use commands while avoiding leaving traces on a system.
This document provides an overview of the UNIX operating system. It begins with an introduction to UNIX, noting that it was developed in 1969 at Bell Labs and is a portable, multi-user, multi-tasking operating system. The document then covers the history of UNIX, its key features including multi-user capability and security, and common shells like Bourne shell. It also discusses common UNIX distributions, basic commands like ls, cat and cp, and includes a questions and answers section and references.
Slides from a Capitol Technology University presentation covering doctoral programs offered by the university. All programs are online, and regionally accredited. The presentation covers degree program details, tuition, financial aid and the application process.
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...parmarjuli1412
The document provides an overview of therapeutic communication, emphasizing its importance in nursing to address patient needs and establish effective relationships. THERAPEUTIC COMMUNICATION included some topics like introduction of COMMUNICATION, definition, types, process of communication, definition therapeutic communication, goal, techniques of therapeutic communication, non-therapeutic communication, few ways to improved therapeutic communication, characteristics of therapeutic communication, barrier of THERAPEUTIC RELATIONSHIP, introduction of interpersonal relationship, types of IPR, elements/ dynamics of IPR, introduction of therapeutic nurse patient relationship, definition, purpose, elements/characteristics , and phases of therapeutic communication, definition of Johari window, uses, what actually model represent and its areas, THERAPEUTIC IMPASSES and its management in 5th semester Bsc. nursing and 2nd GNM students
More Related Content
Similar to L4_grep command ppt for unix linux programming (20)
This document provides 15 examples of practical grep command usage in Linux/UNIX. It begins with basic uses like searching for a string in a single file or multiple files. It then demonstrates more advanced features such as ignoring case, using regular expressions to match patterns, highlighting search results, counting/inverting matches, and displaying line numbers. Overall, the examples progress from introductory to more complex uses of grep flags and operations to help both new and experienced users better utilize this powerful search tool.
15 practical grep command examples in linux : unixchinkshady
This document provides 15 examples of using the grep command in Linux. It begins with basic uses like searching for a string in a single file or multiple files. It then covers more advanced techniques like case-insensitive searching, using regular expressions, searching for full words only, and displaying lines around matches. Each example is accompanied by an explanation and code sample to demonstrate the grep functionality. The overall document serves as a tutorial for both new and experienced users to learn practical applications of the grep command.
This document provides an overview of scripting and the shell. It discusses shell basics including editing commands and setting editing modes. It covers pipes and redirection, variables and quoting, common filter commands like cut, sort, uniq, and wc. It also discusses the tee, head, tail, grep, bash scripting, regular expressions, Perl programming including variables, arrays, regular expressions and input/output. Finally, it briefly introduces Python scripting.
Linux is an open-source operating system that provides free and secure software. It allows applications and users to access computer devices and functions through the kernel, which manages communication between hardware, software, and processes. Files, directories, programs, and devices are all treated as files in the Linux file system hierarchy, accessed through commands like ls, mkdir, and rmdir.
grep is a command line utility that searches for patterns in files. It searches the given file(s) for lines containing a match to the given strings or regular expressions and outputs the matching lines. By default, grep prints the matching lines. The name "grep" derives from a similar operation using the Unix/Linux text editor ed. grep uses regular expressions to search for text patterns that can match multiple characters and patterns in text. It has many options to customize searches, such as ignoring case, counting matches, inverting matches, and more.
This document provides an overview of scripting and shell basics. It discusses common shell commands like cut, sort, uniq, wc, head, tail, tee, grep and pipes. It also covers basic bash scripting, regular expressions, and an introduction to Perl programming. The document is presented as lecture notes covering key topics like shell editing commands, I/O redirection, variables, filters and options for commands.
This document provides 15 examples of using the Linux grep command to search files for text patterns. Some key examples include searching for a string in single or multiple files, ignoring case, using regular expressions to match patterns, displaying lines before/after/around matches, inverting matches, counting matches, and highlighting matched text. The examples demonstrate many useful grep options for finding text in files.
Unix is an operating system that provides an interface between users and hardware. It manages storage, I/O devices, and allows for multi-tasking and multi-user access. The Unix operating system originated in 1969 and has evolved over time with contributions from various universities and companies. It uses a kernel to manage interactions between users, applications, and hardware. The shell is the interface that users interact with to run commands and programs on the system.
The document provides an overview of operating systems and introduces the command line interface. It discusses how the kernel and shell work together, with the shell receiving commands from the user and passing them to the kernel as system calls. Common Linux commands like ls, cd, touch, and rm are introduced. The document also discusses the Bash shell, command line tasks, globbing patterns, and the pipe feature. It provides a brief introduction to Powershell as the default shell for Windows, covering cmdlets, aliases, and applications.
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
The document provides an overview of Unix and shell scripting. It discusses what Unix is, its architecture including the kernel, shell, commands, and filesystem. It then covers what shell scripts are, their components and syntax. The document provides examples of shell script code and discusses how to invoke scripts, execute them in background, and useful metacharacters. It also covers various Unix commands like ls, cd, grep, find and their usage.
The document outlines a workshop on Unix systems and commands for evolutionary biology, held in Leipzig, Germany, from April 3rd to 19th, 2013. It covers essential Unix commands such as grep, cut, and sort, along with their applications in bioinformatics, emphasizing the Unix philosophy of using small, specialized programs that can be combined for complex tasks. The session includes practical exercises and discussions on data analysis techniques, reinforcing the utility of Unix in biological data processing.
Information about linux operating systemPriyankaMate4
This document provides a comprehensive overview of basic Linux commands categorized into various functions such as file management, process management, user management, and text processing. It offers specific commands for tasks like changing directories, managing files, monitoring processes, and handling text. Additionally, it includes examples and explanations of common command usage to facilitate understanding and application.
The document discusses Linux commands for file management and viewing. It describes commands for navigating directories (cd), changing file permissions (chmod), copying files (cp), finding files (find), listing directory contents (ls), creating and removing directories (mkdir, rmdir), moving and renaming files (mv), viewing file contents (cat, head, tail), comparing files (cmp, diff), searching files (grep), and more. It also covers commands for compressing, archiving, and backing up files like tar, gzip, zip, and commands for counting, sorting, and filtering file contents.
The document discusses the grep command in Linux and its uses for searching files for text patterns. Grep searches files for lines containing a specified pattern. Variants egrep and fgrep are also available. The document provides examples of using grep to search a file called "superheroes.txt" for various words and regular expressions. It also lists some basic regular expression syntax supported by grep like wildcards, character classes, and alternation.
The document outlines various Linux commands and their functionalities, including how to use pipes and semicolons to combine commands, the echo command with escape options, tools like cal and who, and file permissions management via chmod and chown. It details internal and external commands, presents the expr command for computational and string handling, and explains how to manipulate permissions and file ownership. Additionally, it describes the different methods for changing file permissions, using symbolic and absolute forms.
This document provides an overview of common UNIX commands for navigating directories, listing files, editing text, searching for files and strings, compressing files, and more. It describes commands like ls, cd, pwd, vi, grep, find, tar, gzip and man for viewing manual pages. It also explains concepts like pipes, redirection, environment variables and basics of the awk command for text manipulation.
The document provides an introduction to UNIX operating systems, detailing their architecture, major components, and the role of the kernel, shell, and file management. It covers essential commands for file handling, user management, permissions, and regular expressions, along with explanations of file attributes and links. Additionally, it describes how to perform various administrative tasks within a UNIX environment.
This document provides an overview of useful Bash one-liners and commands for tasks like manipulating text and files, working with variables and loops, remote access, and basic system utilities. It covers core Bash concepts like pipes, redirection, grep, awk, sort, and explains how to use commands while avoiding leaving traces on a system.
This document provides an overview of the UNIX operating system. It begins with an introduction to UNIX, noting that it was developed in 1969 at Bell Labs and is a portable, multi-user, multi-tasking operating system. The document then covers the history of UNIX, its key features including multi-user capability and security, and common shells like Bourne shell. It also discusses common UNIX distributions, basic commands like ls, cat and cp, and includes a questions and answers section and references.
Slides from a Capitol Technology University presentation covering doctoral programs offered by the university. All programs are online, and regionally accredited. The presentation covers degree program details, tuition, financial aid and the application process.
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...parmarjuli1412
The document provides an overview of therapeutic communication, emphasizing its importance in nursing to address patient needs and establish effective relationships. THERAPEUTIC COMMUNICATION included some topics like introduction of COMMUNICATION, definition, types, process of communication, definition therapeutic communication, goal, techniques of therapeutic communication, non-therapeutic communication, few ways to improved therapeutic communication, characteristics of therapeutic communication, barrier of THERAPEUTIC RELATIONSHIP, introduction of interpersonal relationship, types of IPR, elements/ dynamics of IPR, introduction of therapeutic nurse patient relationship, definition, purpose, elements/characteristics , and phases of therapeutic communication, definition of Johari window, uses, what actually model represent and its areas, THERAPEUTIC IMPASSES and its management in 5th semester Bsc. nursing and 2nd GNM students
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...RAKESH SAJJAN
This PowerPoint presentation is prepared for Unit 10 – Non-Communicable Diseases and National Health Programs, as per the 5th Semester B.Sc Nursing syllabus outlined by the Indian Nursing Council (INC) under the subject Community Health Nursing – I.
This unit focuses on equipping students with knowledge of the causes, prevention, and control of non-communicable diseases (NCDs), which are a major public health challenge in India. The presentation emphasizes the nurse’s role in early detection, screening, management, and referral services under national-level programs.
🔹 Key Topics Included:
Definition, burden, and impact of NCDs in India
Epidemiology, risk factors, signs/symptoms, prevention, and management of:
Diabetes Mellitus
Hypertension
Cardiovascular Diseases
Stroke & Obesity
Thyroid Disorders
Blindness
Deafness
Injuries and Accidents (incl. road traffic injuries and trauma guidelines)
NCD-2 Cancers:
Breast Cancer
Cervical Cancer
Oral Cancer
Risk factors, screening, diagnosis, early signs, referral & palliative care
Role of nurse in screening, referral, counseling, and continuum of care
National Programs:
National Program for Prevention and Control of Cancer, Diabetes, Cardiovascular Diseases and Stroke (NPCDCS)
National Program for Control of Blindness
National Program for Prevention and Control of Deafness
National Tobacco Control Program (NTCP)
Introduction to Universal Health Coverage and Ayushman Bharat
Use of standard treatment protocols and referral flowcharts
This presentation is ideal for:
Classroom lectures, field assignments, health education planning, and student projects
Preparing for university exams, class tests, and community field postings
ABCs of Bookkeeping for Nonprofits TechSoup.pdfTechSoup
Accounting can be hard enough if you haven’t studied it in school. Nonprofit accounting is actually very different and more challenging still.
Need help? Join Nonprofit CPA and QuickBooks expert Gregg Bossen in this first-time webinar and learn the ABCs of keeping books for a nonprofit organization.
Key takeaways
* What accounting is and how it works
* How to read a financial statement
* What financial statements should be given to the board each month
* What three things nonprofits are required to track
What features to use in QuickBooks to track programs and grants
How to Manage Upselling of Subscriptions in Odoo 18Celine George
Subscriptions in Odoo 18 are designed to auto-renew indefinitely, ensuring continuous service for customers. However, businesses often need flexibility to adjust pricing or quantities based on evolving customer needs.
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecdrazelitouali
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Ray Dalio How Countries go Broke the Big CycleDadang Solihin
A complete and practical understanding of the Big Debt Cycle. A much more practical understanding of how supply and demand really work compared to the conventional economic thinking. A complete and practical understanding of the Overall Big Cycle, which is driven by the Big Debt Cycle and the other major cycles, including the big political cycle within countries that changes political orders and the big geopolitical cycle that changes world orders.
Completed Tuesday June 10th.
An Orientation Sampler of 8 pages.
It helps to understand the text behind anything. This improves our performance and confidence.
Your training will be mixed media. Includes Rehab Intro and Meditation vods, all sold separately.
Editing our Vods & New Shop.
Retail under $30 per item. Store Fees will apply. Digital Should be low cost.
I am still editing the package. I wont be done until probably July? However; Orientation and Lecture 1 (Videos) will be available soon. Media will vary between PDF and Instruction Videos.
Thank you for attending our free workshops. Those can be used with any Reiki Yoga training package. Traditional Reiki does host rules and ethics. Its silent and within the JP Culture/Area/Training/Word of Mouth. It allows remote healing but there’s limits for practitioners and masters. We are not allowed to share certain secrets/tools. Some content is designed only for “Masters”. Some yoga are similar like the Kriya Yoga-Church (Vowed Lessons). We will review both Reiki and Yoga (Master symbols) later on. Sounds Simple but these things host Energy Power/Protection.
Imagine This package will be a supplement or upgrade for professional Reiki. You can create any style you need.
♥♥♥
•* ́ ̈ ̧.•
(Job) Tech for students: In short, high speed is essential. (Space, External Drives, virtual clouds)
Fast devices and desktops are important. Please upgrade your technology and office as needed and timely. - MIA J. Tech Dept (Timeless)
♥♥♥
•* ́ ̈ ̧.•
Copyright Disclaimer 2007-2025+: These lessons are not to be copied or revised without the
Author’s permission. These Lessons are designed Rev. Moore to instruct and guide students on the path to holistic health and wellness.
It’s about expanding your Nature Talents, gifts, even Favorite Hobbies.
♥♥♥
•* ́ ̈ ̧.•
First, Society is still stuck in the matrix. Many of the spiritual collective, say the matrix crashed. Its now collapsing. This means anything lower, darker realms, astral, and matrix are below 5D. 5D is thee trend. It’s our New Dimensional plane. However; this plane takes work ethic,
integration, and self discovery. ♥♥♥
•* ́ ̈ ̧.•
We don’t need to slave, mule, or work double shifts to fuse Reiki lol. It should blend naturally within our lifestyles. Same with Yoga. There’s no
need to use all the poses/asanas. For under a decade, my fav exercises are not asanas but Pilates. It’s all about Yoga-meditation when using Reiki. (Breaking old myths.)
Thank You for reading our Orientation Sampler. The Workshop is 14 pages on introduction. These are a joy and effortless to produce/make.
In this module, you will discover how digital tools, systems, and platforms empower people, businesses, and communities in the modern world. As 21st-century learners, you are part of a generation that lives and learns in a digital environment. This module is designed to guide you in exploring how ICT serves as a powerful tool—not only for communication but also for innovation, entrepreneurship, and responsible citizenship. Throughout this learning material, you will examine how ICT is used in real-world scenarios such as online marketing, digital citizenship, and legal and ethical issues in technology use. You’ll gain practical knowledge and skills, from creating websites and managing e-commerce platforms, to analyzing data and practicing safe and responsible behavior online.
By engaging with the lessons, activities, and performance tasks in this module, you will become more than just a technology user—you will be a responsible, informed, and empowered digital citizen ready to thrive in today’s interconnected world.
Let’s begin this journey and unlock the full potential of ICT in your everyday life!
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...RAKESH SAJJAN
This PowerPoint presentation is based on Unit 7 – Assisting Individuals and Families to Promote and Maintain Their Health, a core topic in Community Health Nursing – I for 5th Semester B.Sc Nursing students, as per the Indian Nursing Council (INC) guidelines.
The unit emphasizes the nurse’s role in family-centered care, early detection of health problems, health promotion, and appropriate referrals, especially in the context of home visits and community outreach. It also strengthens the student’s understanding of nursing responsibilities in real-life community settings.
📘 Key Topics Covered in the Presentation:
Introduction to family health care: needs, principles, and objectives
Assessment of health needs of individuals, families, and groups
Observation and documentation during home visits and field assessments
Identifying risk factors: environmental, behavioral, genetic, and social
Conducting growth and development monitoring in infants and children
Recording and observing:
Milestones of development
Menstrual health and reproductive cycle
Temperature, blood pressure, and vital signs
General physical appearance and personal hygiene
Social assessment: understanding family dynamics, occupation, income, living conditions
Health education and counseling for individuals and families
Guidelines for early detection and referral of communicable and non-communicable diseases
Maintenance of family health records and individual health cards
Assisting families with:
Maternal and child care
Elderly and chronic disease management
Hygiene and nutrition guidance
Utilization of community resources – referral linkages, support services, and local health programs
Role of nurse in coordinating care, advocating for vulnerable individuals, and empowering families
Promoting self-care and family participation in disease prevention and health maintenance
This presentation is highly useful for:
Nursing students preparing for internal exams, university theory papers, or community postings
Health educators conducting family teaching sessions
Students conducting fieldwork and project work during community postings
Public health nurses and outreach workers dealing with preventive, promotive, and rehabilitative care
It’s structured in a step-by-step format, featuring tables, case examples, and simplified explanations tailored for easy understanding and classroom delivery.
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptxBelicia R.S
Role play : First Aid- CPR, Recovery position and Hand hygiene.
Scene 1: Three friends are shopping in a mall
Scene 2: One of the friend becomes victim to electric shock.
Scene 3: Arrival of a first aider
Steps:
Safety First
Evaluate the victim‘s condition
Call for help
Perform CPR- Secure an open airway, Chest compression, Recuse breaths.
Put the victim in Recovery position if unconscious and breathing normally.
Plate Tectonic Boundaries and Continental Drift TheoryMarie
This 28 slide presentation covers the basics of plate tectonics and continental drift theory. It is an effective introduction into a full plate tectonics unit study, but does not cover faults, stress, seismic waves, or seafloor spreading.
To download PDF, visit The Homeschool Daily. We will be uploading more slideshows to follow this one. Blessings, Marie
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil DisobedienceRajdeep Bavaliya
Dive into the powerful journey from Thoreau’s 19th‑century essay to Gandhi’s mass movement, and discover how one man’s moral stand became the backbone of nonviolent resistance worldwide. Learn how conscience met strategy to spark revolutions, and why their legacy still inspires today’s social justice warriors. Uncover the evolution of civil disobedience. Don’t forget to like, share, and follow for more deep dives into the ideas that changed the world.
M.A. Sem - 2 | Presentation
Presentation Season - 2
Paper - 108: The American Literature
Submitted Date: April 2, 2025
Paper Name: The American Literature
Topic: Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
[Please copy the link and paste it into any web browser to access the content.]
Video Link: https://youtu.be/HXeq6utg7iQ
For a more in-depth discussion of this presentation, please visit the full blog post at the following link: https://rajdeepbavaliya2.blogspot.com/2025/04/thoreau-s-influence-on-gandhi-the-evolution-of-civil-disobedience.html
Please visit this blog to explore additional presentations from this season:
Hashtags:
#CivilDisobedience #ThoreauToGandhi #NonviolentResistance #Satyagraha #Transcendentalism #SocialJustice #HistoryUncovered #GandhiLegacy #ThoreauInfluence #PeacefulProtest
Keyword Tags:
civil disobedience, Thoreau, Gandhi, Satyagraha, nonviolent protest, transcendentalism, moral resistance, Gandhi Thoreau connection, social change, political philosophy
2. LIN 6932 2
File Management with Shell
Commands
The verbose listing shows the file permissions of a given file:
-rwxr-xr-x
• directories have a "d" in the first column
• regular files have a "-".
• the remaining 9 characters indicate owner, group, and world
permissions of the file
• An "r" indicates it's readable
• "w" is writable,
• "x" is executable
A dash in the column instead of a letter means that particular
permission is turned off.
3. LIN 6932 3
File Management with Shell
Commands
r readable
w writable
x executable
- permission is turned off
-rwxr-xr-x
a plain file that is read-write-execute by the owner, and read-
execute by group and world.
drwx------
a directory that is read-write-execute by owner, and group and
world have no permissions at all.
4. LIN 6932 4
File Management with Shell
Commands
% chmod [permissions] [file]
Changes the permissions of the named file.
You can use numbers:
% chmod 755 index.html
The first number translates to permissions by the owner. The second is permissions for the group.
The third is permissions for everyone.
Number Perms
0 --- no permissions
1 --x executable only
2 -w- writable only
3 -wx writable and executable
4 r--- readable only
5 r-x readable and executable
6 rw- readable and writable
7 rwx readable, writable, and executable
5. LIN 6932 5
File Management with Shell
Commands
A second way of setting permissions is with letters:
% chmod u+rwx index.html
% chmod go+rx index.html
u is the owner's ("user's") permissions
g is the group permissions
o is "other" or world permissions.
The + sign turns the stated permissions on;
the — sign turns them off
If you want to change a file so that it's group writable, but not readable or
executable, you'd do:
% chmod g+w,g-rx index.html
6. LIN 6932 6
Example of a simple shell script
# This script displays the date, time,
# username and current directory.
echo "Date and time is:"
date
echo "Your username is: `whoami`"
echo "Your current directory is:"
pwd
7. LIN 6932 7
Example of a simple shell script
# This script displays the date, time,
# username and current directory.
echo "Date and time is:"
date
echo "Your username is: `whoami`"
echo "Your current directory is:"
pwd
8. LIN 6932 8
Example of a simple shell script
# This script displays the date, time,
# username and current directory.
lines beginning with a hash (#) are comments and are not interpreted
by the Shell.
9. LIN 6932 9
Example of a simple shell script
# This script displays the date, time,
# username and current directory.
echo "Date and time is:"
• When used as a Shell command echo echo prints its argument
• When echoing multiple words, they must be placed within
quotes (single or double)
10. LIN 6932 10
Example of a simple shell script
# This script displays the date, time,
# username and current directory.
echo "Date and time is:"
date
echo "Your username is: `whoami`"
The backquotes (`) around the command whoami illustrate the use
of COMMAND SUBSTITUTION: To include the output from one
command within the command line for another command, enclose
the command whose output is to be included within `backquotes`.
11. LIN 6932 11
Executing the shell script
• Before using a file as a shell script you must change its access
permissions so that you have execute permission on the file,
otherwise the error message Permission deniedis displayed.
• To give yourself execute permission for the file containing the
script use the command:
% chmod u+rwx display
• To run the shell script, simply type its name at the prompt. The
commands in the script will then execute one at a time as though
you were typing them in at the terminal.
12. LIN 6932 12
Executing the shell script
% chmod u-x display
% display
display: Permission denied.
13. LIN 6932 13
Searching for something in a file
GREP
• The grep family is a collection of three related programs
for finding patterns in files. Their names are grep, fgrep,
and egrep.
• The name grep has its origin in the phrase "Get Regular
Expression and Print”
• grep is a full-blown regular-expression matcher
• fgrep = "fixed string grep” only searches for strings
• egrep = “extended grep”
14. LIN 6932 14
Searching for something in a file
fgrep
fgrep: the easiest (but not fastest) one to use
Syntax:
% fgrep [options] 'search string’ filenames
Interpretation:
In the name fgrep the f stands for "Fixed string", and not "Fast"
(contrary to what the man page may tell you). The fgrep program finds
all the lines in a file that contain a certain fixed string. So, for example, I
could find all occurrences of CA in the files in the current working
directory simply by typing this command:
% fgrep CA *
15. LIN 6932 15
Searching for something in a file
fgrep
• Like many UNIX filters, it can take as many file names as
you like to supply. And of course it permits various
adverbs that specify options; two useful ones are
• -i ignore the difference between upper case and
lower case when deciding what is a match
• -v reverse the effect of the search by outputting only
the lines that don't match
% fgrep -i CA *
% fgrep -v CA *
16. LIN 6932 16
Searching for something in a file
fgrep
The key limitation of fgrep is that you cannot use it to get
approximate matches, or matches of more complicated
patterns that cannot be described by just giving a fixed string.
Sometimes you are not quite sure what string you are looking
for; for example, you might know only that the word you are
seeking begins with z and ends with -ic, and had the sequence
gm in it somewhere. What you need, then, is not a program
that will find the matching lines for you if you give it the
exact string you need to find, but rather a program that can
understand a language in which you can say things like
"begins with z and ends with -ic or -ics and had gm in it
somewhere."
17. LIN 6932 17
Searching for something in a file
grep
called up by giving a command that has this form:
% grep [options] pattern description files_to_search_in
% grep -i 'pull[aeiou][mn]’ shakespeare bad_phone_numbers display
• This means, "without distinguishing between upper and lower case, search the files
shakespeare bad_phone_numbers display for lines that contain pull
followed by a vowel letter followed by an m or an n". Thus it is looking for Pullum,
Pullam, Pullen, PULLUN, [email protected], etc., etc.
• The expression pull[aeiou][mn] is a pattern description covering the name Pullum
and most common variants of it. Thus it is looking for Pullum, Pullam, Pullen,
PULLUN, [email protected].
• The pattern descriptions used with grep are in a language called the language of
regular expressions. This is one of the most important and fruitful developments in
modern computer science, and in order to use grep you need to understand regular
expressions thoroughly.
18. LIN 6932 18
Searching for something in a file
grep
There are various dialects of the regular expression language that are used by various
UNIX programs.
Here we will be talking about grep and its extended cousin egrep. (Read the excellent
summary with examples in Unix in a Nutshell, particularly chapter 6, and do man grep on
a NetBSD machine to check the details of the GNU grep that runs on those machines.
(GNU: pronounced guh-noo, approximately like canoe; launched in 1984 to develop a
complete Unix-like operating system which is free software, often referred to as LINUX)
Note that the grep that runs on other machines may be a different program, with lots of
differences in its behavior from the GNU version.
19. LIN 6932 19
Searching for something in a file
grep
There are various dialects of the regular expression language that are used by various
UNIX programs.
Here we will be talking about grep and its extended cousin egrep. (Read the excellent
summary with examples in Unix in a Nutshell, particularly chapter 6, and do man grep on
a NetBSD machine to check the details of the GNU grep that runs on those machines.
(GNU: pronounced guh-noo, approximately like canoe; launched in 1984 to develop a
complete Unix-like operating system which is free software, often referred to as LINUX)
Note that the grep that runs on other machines may be a different program, with lots of
differences in its behavior from the GNU version.
20. LIN 6932 20
Searching for something in a file
grep
• Example: “The match the phrase that begins with z at the beginning of a line and ends in -ic or -ics
at the end of the line, and it has gm in it somewhere”, is expressed in the language of regular
expressions in this form:
^z.*gm.*ics*$
To be more precise, what this regular expression means is:
"beginning of line followed by z followed by optional other material followed by gm followed by
optional other material followed by -ic followed by zero or more occurrences of s followed by end of
line"
• It can therefore be used in a grep command to search for a word in a dictionary where each
word is on a separate line meeting the description:
% grep '^z.*gm.*ics*$' dictionary
Search result: zeugmatic
21. LIN 6932 21
Searching for something in a file
grep
The most trivial case of a regular expression is that of a fixed string of the sort that fgrep
recognizes. Fixed strings are regular expressions that are matched only by strings identical to
themselves.
The regular expression Z is matched by any occurrence of Z. There happens to be only one line in
The Great God Pan (/class/lin6932/c6932aab/machen.txt) that matches it, namely the middle line of
these three:
remained. These three, however, were 'good lives,' but yet
not proof against the Zulu assegais and typhoid fever, and so
one morning Aubernoun woke up and found himself Lord
Because the middle line matches the expression Z, you can fetch (a copy of) that line out of the file
like this:
% grep Z machen.txt
not proof against the Zulu assegais and typhoid fever, and so
22. LIN 6932 22
Searching for something in a file
grep
% fgrep Z machen.txt
fgrep would do the same thing.
But what fgrep cannot do is to call for all lines with Au possibly followed by some
other lower-case letters and then an n. That is accomplished by the regular
expression
Au[a-z]*n
this RE is matched by any sequence of a capital A followed by a lower-case u
followed by zero or more letters in the range lower-case a to lower-case z followed
by lower-case n. This means it will be matched by any string containing a word
like word like any of these: Aubernoun, Augustine, Austin, etc.
23. LIN 6932 23
Searching for something in a file
grep
% fmt -1 machen.txt | tr -d '[:punct:] ' | grep 'Au[a-z]*n' | sort -u
The fmt command is to break the words up and put them one on each line
the tr -d '[:punct:]' command erases all punctuation, and spaces
the sort -u command sorts the search result alphabetically
24. LIN 6932 24
Searching for something in a file
grep
% grep 'Au[a-z]*n' machen.txt
Au[s t r a l a b r a c a d a b r a l a l i o l a s i a]n
Au[ a-z ]*n
25. LIN 6932 25
Searching for something in a file
grep
Example:
The zipcodes in the near vicinity of the UC campus are 95060 (Santa Cruz west of
the river), 95062 (Live Oak), 95064 (UCSC), 95065 (East Santa Cruz), 95066
(Scotts Valley).
Suppose you wanted to extract from a file called addresses, containing one full
name and address on each line, just the addresses of people living in these areas.
Assume some people type a space after CA and others don't, and some write
several spaces.
The following regular expression describes the set of zipcodes you want:
CA *9506[024-6].
This grep command will find just the lines in the file addresses that contain
zipcodes for people who live in near the campus:
% grep 'CA *9506[024-6]' addresses
26. LIN 6932 26
Searching for something in a file
grep
Example:
Suppose you want only the 9-digit zipcodes, that's easy too:
% grep 'CA *9506[024-6]-[0-9]{4}' addresses
27. LIN 6932 27
Searching for something in a file
grep
Example:
Suppose you were looking to see whether there were any words
beginning with a in a file called shakespeare.
You might type
% grep a* shakespeare
28. LIN 6932 28
Searching for something in a file
egrep
Some simple tasks would be a bit of a chore just using grep. Suppose we wanted to add Ben
Lomond (CA 95005), Davenport (CA 95017), and Felton (CA 95018). What we need here is
the disjunction: for the 5-digit zipcodes, the strings we want will match either CA *9506[024-
6] or CA *95005 or CA *9501[78] or.
Now, we can certainly do that: we can simply call grep three separate times, and amalgamate
all the results. We cannot amalgamate all the searches into something like CA *950[016][024-
8], because that defines a set that is too big; it lets in 95004, for example, and that's Aromas,
way the other side of Watsonville.
The way to do it is to use the extended regular expressons provided by the egrep program. In
egrep, you can use parentheses to group parts of the expression and the pipe symbol to mean
or. So (AB)|C means "either AB or C", while A(B|C) means "A followed by either B or C", and
so on. Thus we could use:% egrep 'CA *950((05)|(6[024-6])|(1[78]))' addressesThere are a few
other things that egrep allows but grep does not. For example, in egrep regular expressions
you can say a+ to mean "a sequence of one or more as", or [a-z]+ to mean "a sequence of one or
more lower-case letters". In grep regular expressions you would have to say aa* and [a-z][a-z]*
respectively to get these effects.
29. LIN 6932 29
Searching for something in a file
egrep
The way to do it is to use the extended regular expressons provided by the egrep
program. In egrep, you can use parentheses to group parts of the expression and
the pipe symbol to mean or. So (AB)|C means "either AB or C", while A(B|C)
means "A followed by either B or C", and so on. Thus we could use:% egrep 'CA
*950((05)|(6[024-6])|(1[78]))' addressesThere are a few other things that egrep
allows but grep does not. For example, in egrep regular expressions you can say
a+ to mean "a sequence of one or more as", or [a-z]+ to mean "a sequence of one
or more lower-case letters". In grep regular expressions you would have to say aa*
and [a-z][a-z]* respectively to get these effects.
30. LIN 6932 30
Searching for something in a file
egrep
So we can use:
% egrep 'CA *950((05)|(6[024-6])|(1[78]))' addresses
There are a few other things that egrep allows but grep does not. For example, in
egrep regular expressions you can say a+ to mean "a sequence of one or more as",
or [a-z]+ to mean "a sequence of one or more lower-case letters". In grep regular
expressions you would have to say aa* and [a-z][a-z]* respectively to get these
effects.
31. LIN 6932 31
File Management with Shell
Commands
Changing to another directory
% cd .. [RETURN] go up a directory tree
% cd [DIRECTORY] [RETURN] change to a subdirectory
% cd /tmp to change to some other
directory on the system,
you must type the full path
name
32. LIN 6932 32
File Management with Shell
Commands
• Create a directory
% mkdir [DIRECTORY.NAME] [RETURN]
• Remove a directory
% rmdir [DIRECTORY.NAME] [RETURN]
33. LIN 6932 33
Searching for something in a file
> cd ..
> cd c6932aab
> ls
display shakespeare
> cp shakespeare ~c6932aad
> cd
> ls
shakespeare
34. LIN 6932 34
Searching for something in a file
% grep [options] pattern filenames
% fgrep [options] string filenames
fgrep (or "fast grep") only searches for strings
grep is a full-blown regular-expression matcher
Some of the valid options are:
-i case-insensitive search
-n show the line# along with the matched line
-v invert match, e.g. find all lines that do NOT match
-w match entire words, rather than substrings
35. LIN 6932 35
Searching for something in a file
with GREP
% grep -inw ”thou" shakespeare
find all instances of the word ”though" in the file “shakespeare”, case-
insensitive but whole words and display the line numbers
36. LIN 6932 36
Grep
grep '^smug' files {'smug' at the start of a line}
grep 'smug$' files {'smug' at the end of a line}
grep '^smug$' files {lines containing only 'smug'}
grep '^s' files {lines starting with '^s'}
grep '[Ss]mug' files {search for 'Smug' or 'smug'}
grep 'B[oO][bB]' files {search for BOB, Bob, BOb or BoB }
grep '^$' files {search for blank lines}
grep '[0-9][0-9]' file {search for pairs of numeric digits}
37. LIN 6932 37
Grep
grep '[^a-zA-Z0-9] {anything not a letter or number}
grep '[0-9]{3}-[0-9]{4}' {999-9999, like phone numbers}
grep '^.$' {lines with exactly one character}
grep '"smug"' {'smug' within double quotes}
grep '"*smug"*' {'smug', with or without quotes}
grep '^.' {any line that starts with "."}
grep '^.[a-z][a-z]' {line start with "." and 2 lc letters}
38. LIN 6932 38
Egrep
The version of grep that supports the full set of
operators mentioned above is generally called egrep
(for extended grep)
% egrep '(mine|my)' shakespeare
39. Linux+ Guide to Linux
Certification, 2e
39
Regular Expressions
• Different from wildcard metacharacters
– Wildcard metacharacters interpreted by shell;
regexps interpreted by text tools
– Wildcard metacharacters match characters in
filenames; regexps match characters within text
files
– More regexps than wildcard metacharacters
• Common and extended regexps
40. Linux+ Guide to Linux
Certification, 2e
40
Regular Expressions (continued)
Table 4-4: Regular expressions
41. Linux+ Guide to Linux
Certification, 2e
41
Regular Expressions (continued)
Table 4-4 (continued):
Regular expressions
42. Linux+ Guide to Linux
Certification, 2e
42
The grep Command
• grep (global regular expression print) command:
Displays lines in a text file matching a given
regexp
• egrep command: Displays lines of text that
match extended regexps
• fgrep command: Does not interpret any regular
expressions
– Returns results much faster than egrep
• grep requires two arguments
– Text to search for and files to search