Тёмный

Shell Scripting Tutorial for Beginners 7 - How to append output to the end of text file 

ProgrammingKnowledge
Подписаться 1,8 млн
Просмотров 179 тыс.
50% 1

In this video we will see how to How to append string/data to a file in Linux. Using our knowledge we have gained in the last two lessons we will see how to Append and Insert Lines to a File using bash script.
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

Опубликовано:

 

10 мар 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@leemedlin3100
@leemedlin3100 3 года назад
Outstanding tutorial for a noob like me! You my friend made me retain interest in scripting because you don't talk over my head, and know how to keep learners engaged. Thank you.
@visheshpandita2787
@visheshpandita2787 5 лет назад
Just wanted to say thanks for making these tutorials!
@richardsilva5136
@richardsilva5136 5 лет назад
Great tutorial, man! Thanks.
@apporvaarya
@apporvaarya 5 лет назад
shell scripting is okay till yet. loving it actually . thanks for teaching in beginner mode.
@nancyjuliet1364
@nancyjuliet1364 6 лет назад
this tutorial is very useful. best tutorial for shell scripting thanks
@ksupreeth88
@ksupreeth88 6 лет назад
Thanks for the tutorials.
@prateekrathore5069
@prateekrathore5069 3 года назад
You done the great job .. Very nice discribe each and everything.. Suggestions: next time make videos on expection handle and error logs. Most of user having issue once they're trying write new scripts.
@nicolasssssssss
@nicolasssssssss 4 года назад
Thank you for the vids!
@muhammadsafiullah8428
@muhammadsafiullah8428 5 лет назад
great tutorials..
@aashima9384
@aashima9384 4 года назад
very helpful videos
@dayanandswami8109
@dayanandswami8109 11 месяцев назад
Very nice explanation
@Andrzej3935
@Andrzej3935 5 месяцев назад
Thanks!
@swadhikarc7858
@swadhikarc7858 6 лет назад
Absolutely good video. But only one suggestion or area to ponder - pls try not to drag the words too much. You're already explaining it clear. This would make video shorter and precise. Thanks.
@bhupendrachandrakar4630
@bhupendrachandrakar4630 4 года назад
sir if there is a file and we want to know the location or path of the file then which flag will use for that.
@rogueog4161
@rogueog4161 Год назад
yours movies are insane i love it thx !! just i'm on a macbook m1 and on my terminal i can't chmod -w/-r/-x i can't remove permissions , i 've all permissions and can't remove it idk why
@OddBallTrails
@OddBallTrails 6 лет назад
Not sure why the -w and -r commands aren’t working for me but -x commands working good. Any idea ? I am using Amazon linux ec2 servers for these practicals. Thanks.
@ritawu1221
@ritawu1221 6 лет назад
Me too. I am using centOS7
@Cerlienkus
@Cerlienkus 6 лет назад
Hi, how do I check the NOT condition for example to create a new file if the entered one doesn't exist? Thnks ;)
@alexeidemski5640
@alexeidemski5640 5 лет назад
You can do it like this: if [ ! -e $file_name ]. The "!" stands for NOT, or the opposite.
@TheAnnoor
@TheAnnoor Год назад
thanks so much for these tutorials!
@6ixline
@6ixline 4 года назад
why my nested if is not working please help
@charlesgormley9075
@charlesgormley9075 2 года назад
Thank for these
@fxjr8787
@fxjr8787 5 лет назад
Okay, so I took off all of my write permissions but when I run the script I'm still able to modify my file. Anyone know why?
@prabhakars9590
@prabhakars9590 4 года назад
Check if you are running from root folder..
@tejashreearingle334
@tejashreearingle334 6 лет назад
i am still able to enter the text even when i remove the write permission from the file
@user-rp6xi4il5z
@user-rp6xi4il5z 6 лет назад
Tejashree Aringle bro,you can go to Newboston to check out its linux tutorials for beginners,the fifth or seventh videos(sorry i forget)will help you have a better understand of -r-w-x
@nuralam6797
@nuralam6797 5 лет назад
same to me also, it's weired , i checked but without write permission i can enter text, terminal wants some cool drinks
@Buddhi_Ratkali
@Buddhi_Ratkali 6 лет назад
If I am not wrong "-w" command doesn't work in CentOS 7 and even if i removed write permission i am able to write the text. why so ?
@ansonyean9297
@ansonyean9297 5 лет назад
you need to change root to normal user
@amroz2611
@amroz2611 5 лет назад
Getting the following error at the output against shell command " cat >> $file_name " ------ $file_name: ambiguous redirect Please help
@rogeliovillafana7282
@rogeliovillafana7282 5 лет назад
share full script code
@KiranKumar-iz8dh
@KiranKumar-iz8dh 5 лет назад
You might wrote "read $file_name". it should be "read file_name". $ not required.
@aiswaryat1185
@aiswaryat1185 2 года назад
Created a new file and entered the name but its showing file not exist !!.Anyone know why?
@akshaytiwari2135
@akshaytiwari2135 3 года назад
what is the f word
@GOODBOY-vt1cf
@GOODBOY-vt1cf 2 года назад
6:59
@sambasiva1930
@sambasiva1930 6 лет назад
Yes , I am getting same error. Can any one help us.
@srajith4499
@srajith4499 4 года назад
are u on kali or as root user ?
@rainbowp19
@rainbowp19 5 лет назад
im surprised its not working for me... even though i removed write permission to my file it still takes data to write.. please help here
@youssefbenbrahim3116
@youssefbenbrahim3116 10 месяцев назад
same
@amudhadennis4081
@amudhadennis4081 3 года назад
Ctvt
Далее
MacBook Air Японский Прикол!
00:42
Просмотров 252 тыс.
Become a shell wizard in ~12 mins
12:25
Просмотров 217 тыс.
BASH scripting will change your life
14:18
Просмотров 996 тыс.
Bash Scripting Tutorial for Beginners
47:57
Просмотров 422 тыс.
MacBook Air Японский Прикол!
00:42
Просмотров 252 тыс.