I want to know how to quickly delete text with Bash. For example, I have a file named file.txt with a total of 500 lines.
I want to delete lines 80 to 146 - how do I do that?
What's is a terminal command that can do that?
I want to know how to quickly delete text with Bash. For example, I have a file named file.txt with a total of 500 lines.
I want to delete lines 80 to 146 - how do I do that?
What's is a terminal command that can do that?
I'd like to ask,
how to add a watermark in ffmpeg at a certain duration? for example I have a 2 minute video, I want the watermark to appear at 1:15 - 1:25 how to do it?
I'd like to ask,
how to add watermark few seconds and many duration ?
for example I have a 10 minute video, I want to show the watermark for 15 seconds at 05:26 minutes then after 15 seconds the watermark will disappear, and I want to show the watermark again at 08:15 minutes for 15 seconds and I want to add another watermark for 30 minutes seconds at minute 09:30 ,
How to ? I don't know the command
I have a problem if I upgrade / update the kernel then the operating system error because I have an old version of my laptop. so I want to permanently disable the package to update / upgrade the kernel how do I do it?
i use this command
sudo apt-mark hold linux-headers-5.13.0-30-generic
sudo apt-mark hold linux-hwe-5.13-headers-5.13.0-30
sudo apt-mark hold linux-image-5.13.0-30-generic
sudo apt-mark hold linux-modules-5.13.0-30-generic
sudo apt-mark hold linux-modules-extra-5.13.0-30-generic
but after rebooting linux still asks for a kernel upgrade, I'm confused, how to permanently disable this kernel update / upgrade, I want to keep using the default kernel from ubuntu 20.04 which is kernel 5.8.0
I want to ask
I have a problem, how do I get input in bash to do newlines?
read -p "List Name: " list
cat <<EOF >names.txt
List Names:
$list
EOF
i can not do a new line or use the command \n , how to add a new line command ?
I want result output names.txt like this
List Name :
Robert
James
Samuel
I have question
what if you want to clone Bootable USB with ubuntu?
so for example I have 1 Windows Bootable Flashdisk, then I want the 2nd Flashdisk to fill the same bootable without the ISO file again, so it's like a clone.
Can ubuntu terminal do that? if yes, I ask what is the Command
Thank You
I have question
How to create large PDF / Convert file size PDF with terminal ubuntu ?
if i have file pdf size 1mb, and i want that file to be 50mb or 100mb, but not add contents in pdf file please help me i am using ubuntu 20.04
I want to convert text to voice with translate-shell, but it doesn't work if the text is long.
This script works (I think because the text is short):
trans -b :fr "I have a question, I want to convert text to voice with translate-shell but why can't convert long text? Please help" -download-audio-as textaudio.mp3
This script doesn't work (presumably because the text is too long):
trans -b :fr "Stack Overflow for Teams, our core SaaS collaboration product, is helping thousands of companies around the world make the transition to remote work, address business continuity challenges, and undergo digital transformation. Whether it's on Stack Overflow or within Stack Overflow for Teams, community is at the center of all that we do." -download-audio-as textaudio.mp3
How to create calculator with bash ?
example
read -p "calculator count: " calc
echo '$((calc))' | bc
i input
2+2
output
(standard_in) 1: illegal character: $
how to fix ?
I just want to make text input in the script, so for the addition of + , - , x - and / . I input manually
for example I want 2+2+1*3/2
After I enter, the result will appear
I have a question, I have a problem, I want to change 2 images in 1 page pdf, how do I do it? I tried this command
convert *.jpg -resize 1240x1753 \
-extent 1240x1753 -gravity center \
-units PixelsPerInch -density 150x150 multipage.pdf
I get the result that 1 image for 1 page only, how to make 2 images 1 page ? so for example I have 10 images, then the result is 5 pages because 1 page 2 images
I have a script script.sh but I am very lazy if when running must open through the folder where the file and run it in the way ./script.sh,
How do I get my script to use keywords?
I have a script.sh file
if I write it in the command
"testscript" will then open the script.sh file
help please
I have a question, how do I just rename keywords? I have a very long file name. I am lazy to change it because I have to copy the name first.
example
filem87302839127921youtube90182mskldq7629121832.mp4
I usually rename files in a way
mv filem87302839127921youtube90182mskldq7629121832.mp4 video.mp4
but it was very troublesome
how can you do it with keywords? for example like in
mv youtube video.mp4
so the system only takes keywords
help please
thank you
I have a question
I have the rename command, but after I run the rename starting from 00, how to start from 01, please help me
this is the command that I use
for i in *.mkv; do
new=$(printf "Movie - %02d.mkv" "$a")
mv -i -- "$i" "$new"
let a=a+1
done
I Have Question, How to bulk / batch rename in terminal ? i use ubuntu 16.04 64 bit
example
i have 5 file
(GreatSoftware) AVG Anvitirus - 1.exe
(GreatSoftware) Windows Media Payer - 2.exe
(GreatSoftware) Winamp - 3.exe
(GreatSoftware) CorelDraw - 4.exe
(GreatSoftware) Chrome - 5.exe
rename to
Joesoftware AVG Anvitirus - 1.exe
Joesoftware Windows Media Payer - 2.exe
Joesoftware Winamp - 3.exe
Joesoftware CorelDraw - 4.exe
Joesoftware Chrome - 5.exe
please help, I want a script that I understand enough of this problem
thank you
I want to make automatically fill the text file that I made but I don't know how, I want to make a .sh script to work automatically but I don't know how. the script that I have thought of for example like this
touch " ubuntu story "
after this I want to fill in the text in my story file, for example the text you want to add like this
Ubuntu is one of the most secure operating systems around. And the long-term support releases give you five years of security patches and updates.
Developer = Canonical Ltd.
OS family = Linux
Working state = Current
Source model = Open-source[1][2]
Initial release = 20 October 2004 (15 years ago)
how to addin this text to file ubuntu story with script ?
if using the manual method I can use this method
nano "ubuntu story"
after that I paste in the terminal column, then I Ctrl + X + Y + Enter
, after that it will be saved.
please help me if you use the bash .sh script
I want to create multiple file creation with touch, but I am constrained by space, because I want to use space in my files like this
1 Joe Arnold
2 lucky man
3 directory lib
I try like this
touch 1 joe arnold
after I execute it, the command has 3 files (1, joe, arnold)
help please
i have a question, i think i always buy vps to access to the server computer, and i have an idea, how can my pc be a server?
For example, I have bought the internet + public IP package
So, how can I make the IP address can be accessed by the terminal on someone's computer like vps access?
suppose I have public ip 187.133.92.1, how so that ip can access with port 22 and can remotely.
hope for help, I'm confused with keywords on Google regarding this problem.
I want the steps to be accessible via port 22,
I am now on Ubuntu 16.04 64 bit
convert subtitle MKS to SRT in terminal ?
How to ? because I can not edit my mks subtitle in ubuntu software that I use. just suport srt only
How to integrate these two commands so I only need to run one?
I want to add watermark, encode the quality and add a subtitle all with one command.
Encode and watermark:
ffmpeg -i video.mp4 -i watermark.png -filter_complex "[0:v]scale=640:360[bg];[bg][1:v]overlay=10:10" -tune psnr -refs 3 -c:v libx265 -preset veryslow -crf 33 videofull.mp4
Add subtitle:
ffmpeg -i video.mp4 -filter:v subtitles=text.srt videosub.mp4
How can I combine the two?