to beggin go to your favourite folder, open konsole and run
echo amazing > file && echo superb >> file && echo magnificent >> file && echo done everything
this will create a new file there named file with three words in each line amazing superb magnificent then run
cat file | tr -d '\n' > 1 && echo done everything
this will turn those three lines into just one. So there will be new file in your current folder caled 1 with everyline joined together into one line
be carefull with this
# asks you to enter your name then puts that into variable nameecho enter your name &&readname# find process named konsole | with command that includes amazing | print only second column into variable pid && then print itpid=`ps aux |grep konsole |grep"amazing"|awk'{ print $2 }'`&&echo$pid# change konsole window title to incredibleecho-ne"\033]30;incredible\007"# zip the super folder into super.zipzip-r super.zip super
# find files named project.godot recursivelyfind . -name"project.godot"# run godot editor with the gamepath/to/your/godot-editor path/to/game/folder/project.godot
# join text file 1 and new togethercat 1 new > together
# additions subtractions removes $old_number from $new_numbernumber_of_new_links=$(echo$new_number-$old_number|bc)# enter home directorycd$HOME# enter folder music from your current foldercd$PWD/Music/
# make folder named notesmkdir notes
# go up a foldercd ..
# remove even if files or folders do not existrm--force$HOME/Music/random333
# remove everything inside current directory random folder including files and foldersrm--force--recursive"$PWD/random/"/*# left click on screen at 111 222 positionxdotool mousemove 111 222 click 1
# presses F6 for youxdotool key F6
# press key combo ctrl+c presses ctrl+c for youxdotool key ctrl+c
# focus on firefox put it in frontxdotool search "Navigator" windowactivate
# puts whats curently in clipboard into copy txt filexsel > copy
# display time hour:minutes into variable timenowtimenow=`date"+%H:%M"`# Put this before the start of commands you want to track how long they take to be doneT="$(date +%s)"# put this at the very end of commands you wish to track how long they tookT="$(($(date +%s)-T))"echo"It took ${T} seconds!"# puts current time into today then makes an empty file named after current timetoday(){date"+%d.%m.%Y %H:%M"}touch"$(today)"# copy files from here that are on a list into home Music folderxargs-a list cp -t$HOME/Music/
# adds a prefix (abc) to everylineawk'$0="abc"$0' file > 1
# removes a prefix or 1 characters or 1 bytes from beggining of every linesed's/^.//' 1 > 2
# adds suffix whitespace to end of every lineawk'NF{print $0 " "}' file > 1
# # removes a suffix from every linesed's/.$//' file > 1
# changes all uppercase letters to lowercase letterstr A-Z a-z < file > 1
# renames file from great to impressivemv great impressive
# print only lines containing abc (its case sensitive so it does not find Abc)grep"abc" file > 1
# print only first line containing abc (its case sensitive so it does not find Abc)grep--max-count=1 "abc" file > 1
# reads line number 259sed n '259p' 1 > 2
# searches and deletes everything before patern amazing and everthing after patern triplesed's/^.*\(amazing.*triple\).*$/\1/' 1 > 2
# delete everything after third "cut-d:-f2- 3 > 4
# delete everything before last /awk'{print $NF}' FS=/
# remove everything from 1 that is in blacklistgrep-Fvxf blacklist 1 > 2
# removes particular linessed-i'/--.github.io/d' 1
# removes empty linessed-i'/^$/d' 1
# removes all the lines that start with -sed-i'/^-/d' 1
# remove duplicatessort 4 |uniq > new
# keeps only first 3 lineshead-3 file > 1
# turns every space into _ underscoresed-e"s/ /_/g" file > 1
# put every line into quotesxargs-I {lin} echo \"{lin}\" < file > 1
# put multiple lines into onecat file |tr-d'\n' > 1
# adds #!/bin/bash to begining of filesed-i'1i #!/bin/bash' file
# make script executablechmod +x script.sh
# run a scriptbash script.sh
# run a scriptsh script.sh
# get all the text from the websitelynx-dump-nolist https://yugioh.fandom.com/wiki/Armades,_Keeper_of_Boundaries > 1
# gets current website source codecurl https://yugioh.fandom.com/wiki/Armades,_Keeper_of_Boundaries > 1
# get code from githubgit clone https://some/github/url
# split text into multiple text files 1 line eachsplit-l 1 file
# count how many lines text file new has then strip anything besides numbers put it into variableline_number=`wc-l new |sed's/[^0-9]*//g'`# linux count how many lines a file haswc-l file > numberoflines
# keep only number in numberoflinessed's/[^0-9]*//g' numberoflines > numberoflines1
# put content of a text file into a variable or put output of command into a variablelines=`cat numberoflines1`# make a file with ascending numbers n+seq-f"%.0f" 1 10 > numbers
# put two text files together# file1 +file2 =joined results# amazing+triple=amazingtriple# superb +uno =superbunopaste'-d\0' file1 file2 > joined
# do this command to every file in a foldercd"/home/user/1/"for i in*;dogrep"abc"$i > /home/user/2/$i;done# in your current folder remove most silence of every .ogg files add prefix 0silence0. and move them into home music directoryfor i in*.ogg ;dosox"$i"$HOME/Music/0silence0."$i" silence -l 1 0.1 1% -1 3.0 1% ;done# renames every file in current folder -- removes 0silence0. from their filenamesrename"s/0silence0.//g"*# inifinte loop never ending sleep for 1 secondwhile:dosleep 1
done# count how many files folder 1 in current directory has and put in into lib/statusls$PWD/1 |wc-l > $PWD/lib/status
# continue when there is correct statuswhile[$status-gt 0 ];doecho sleeping
sleep 1
ls$PWD/1 |wc-l > $PWD/lib/status
status=`cat$PWD/lib/status`sh$PWD/lib/silence
done