Do you think it's a decent idea to make the .sh script call a python script if you can't remember something important about bash but can remember it in python? Bash's syntax gets weird at times and python (including argparse) is normally preinstalled on RHEL.
Thanks for the video! Really enjoying your series. I don't think expansion using "${file}" is really needed in the script to rename files. Plus you could simplify by using sed to add the .txt extension: file1=`echo $file | sed s/\.log$/\.txt/g` mv $file $file1 I just think it is clearer that way, but there are many ways to achieve the same ends...
Thank you for these videos highlighting all of the sections! They're going to be extremely helpful in helping me pass the RHCSA. Much love!
Man... I fell in love with your videos. I HAD TO subscribe!!! Thank you for your hard work!
Glad to help mate!
Thanks a lot your videos are always straight to the point.
I really do appreciate your work
You are doing a public service. Thanks a million!
Do you think it's a decent idea to make the .sh script call a python script if you can't remember something important about bash but can remember it in python? Bash's syntax gets weird at times and python (including argparse) is normally preinstalled on RHEL.
Yeah that's right Jim 😂 you can achieve the objectives in anyway you want as long as it's persistent.
My respects Mr.
Thank you!
Thanks man!
great video, helping content
Thank you
No worries 👍
Thanks a lot buddy
No worries 😀
First of all thank you for this awesome videos. I just want to ask you. This is last video of RHCSA ? And will you upload RHCE videos ? Please answer
RHCE will follow in the new year :)
Thanks for the video! Really enjoying your series.
I don't think expansion using "${file}" is really needed in the script to rename files. Plus you could simplify by using sed to add the .txt extension:
file1=`echo $file | sed s/\.log$/\.txt/g`
mv $file $file1
I just think it is clearer that way, but there are many ways to achieve the same ends...
Good point!
14:15 why does the test = 0? why would the ip address = to zero
I'm no expert but I assume ping would exit with an error code if it fail, and 0 for OK.
Is this scripting actually needed for RHCSA, seems a bit overkill to me... dunno
Yeah its there as an objective.
Dear start a rhce in detail
Will look to at some point
sir this time video got very hard on us ...
I used a somewhat simpler solution for renaming the .log to .txt
#!/bin/bash
for file in ./*.log
do
mv "$file" "${file%.log}.txt"
done
exit