« first day (2693 days earlier)      last day (2559 days later) » 

15:43
Does below command create folders again despite you have the folder existing with files?
mkdir -p /var/xyz
It creates /var and /var/xyz if they don't exist. mkdir shouldn't trash existing directories, if that's what you're worried about
16:03
ok
16:23
@ilkkachu What does ${#i} mean below?
for i in `ls -1rt $sDir`

do

if [ ${#i} -eq 48 ]; then
I assume you didn't write that yourself, right? (just checking)
I did not write
yes
(Because I was going to say something ugly about whoever wrote that, but never mind.)
${#i} is the length of the value of i.
that is, the filename there. But that whole thing falls into the Parsing Ls territory. (also this about sorting files by metadata, though I do know the solutions for sh/bash are rather annoying.)
length of each file name?
16:32
horrible hahaha
file length is 47 now
hahaha
I understand what u meant ugly now
 
2 hours later…
18:25
for i in ls -1rt $sDir` I want to pick files that are starting with ABC- and process them
What is the condition in if [ condition ]; then?
19:04
@overexchange You would do for name in "$sDir"/ABC-*; do ...; done
Don't ever used for i in $(ls) or anything like that. Use shell filename globbing patterns instead.
If you want to be sure that you only pick up regular files, then you may use [ ! -f "$name" ] && continue inside the loop to continue with the next name if the current name is not that of a file.
Hey people
Any of you know about how to create custom animated wallpapers?
19:40
@Thijser No, sorry, I use a boring single-coloured background.
@Kusalananda ok thanks for thinking about it anyway
Anyway if you know someone who might be able to help
0
Q: How do I create my own real time updating wallpaper

ThijserI have some basic experience with opengl and was thinking that I would love to have an animated wallpaper that also factors in some properties about my machine (such as sound volume,cpu usage etc.) now I understand that in order to do this I would have to create a basic opengl program (I already ...


« first day (2693 days earlier)      last day (2559 days later) »