What I need:
- Automation Tasks
- Web programming
Umm, Perl? I think I will add it to my list
People *have* designed such languages, but the problem is they don't get any traction unless they find some "killer app", in which case the shittiest language in the world (PHP, JavaScript...) can take off.
Rest assure that PERL fits 99% of day tasks

cannot handle file names with newlines
filename="$( printf 'foo\nbar' )"
touch "$filename"
or eventouch 'foo
bar'
to accomplish the same. Works just fine in Linux.
Quotecannot handle file names with newlines
I never realised that anything could, or should! Is there an actual OS that does?
bruce@rip:~/temp$ l
total 32
-rwxr-xr-x 1 bruce bruce 16408 Dec 6 16:01 hello
drwxr-xr-x 6 bruce bruce 4096 Dec 6 15:58 _install
drwxr-xr-x 17 bruce bruce 4096 Dec 6 15:28 riscv-isa-sim
drwxr-xr-x 11 bruce bruce 4096 Dec 6 15:37 riscv-pk
bruce@rip:~/temp$ echo foo >'line 1\
> line 2'
bruce@rip:~/temp$ l
total 36
-rwxr-xr-x 1 bruce bruce 16408 Dec 6 16:01 hello
drwxr-xr-x 6 bruce bruce 4096 Dec 6 15:58 _install
-rw-r--r-- 1 bruce bruce 4 Dec 8 11:56 'line 1\'$'\n''line 2'
drwxr-xr-x 17 bruce bruce 4096 Dec 6 15:28 riscv-isa-sim
drwxr-xr-x 11 bruce bruce 4096 Dec 6 15:37 riscv-pk
bruce@rip:~/temp$
/home/bruce/temp:
total used in directory 44 available 368830636
-rwxr-xr-x 1 bruce bruce 16408 Dec 6 16:01 hello
drwxr-xr-x 6 bruce bruce 4096 Dec 6 15:58 _install
-rw-r--r-- 1 bruce bruce 4 Dec 8 11:56 line 1\\
line 2
drwxr-xr-x 17 bruce bruce 4096 Dec 6 15:28 riscv-isa-sim
drwxr-xr-x 11 bruce bruce 4096 Dec 6 15:37 riscv-pk
bruce@mini:~/trv$ l
total 168
-rw-r--r-- 1 bruce staff 2703 6 Dec 23:17 instructions.inc
-rwxr-xr-x 1 bruce staff 68112 6 Dec 23:37 trv
-rw-r--r-- 1 bruce staff 8340 6 Dec 23:37 trv.c
bruce@mini:~/trv$ echo foo >'line1\
> line2'
bruce@mini:~/trv$ l
total 176
-rw-r--r-- 1 bruce staff 2703 6 Dec 23:17 instructions.inc
-rw-r--r-- 1 bruce staff 4 8 Dec 12:01 line1\?line2
-rwxr-xr-x 1 bruce staff 68112 6 Dec 23:37 trv
-rw-r--r-- 1 bruce staff 8340 6 Dec 23:37 trv.c
bruce@mini:~/trv$
/Users/bruce/trv:
total used in directory 176 available 103 GiB
drwxr-xr-x 7 bruce staff 224 8 Dec 12:01 .
drwxr-xr-x+ 41 bruce staff 1312 6 Dec 23:21 ..
drwxr-xr-x 12 bruce staff 384 6 Dec 23:47 .git
-rw-r--r-- 1 bruce staff 2703 6 Dec 23:17 instructions.inc
-rw-r--r-- 1 bruce staff 4 8 Dec 12:01 line1\\
line2
-rwxr-xr-x 1 bruce staff 68112 6 Dec 23:37 trv
-rw-r--r-- 1 bruce staff 8340 6 Dec 23:37 trv.c
#include <stdio.h>
#include <dirent.h>
void main() {
DIR *dp = opendir(".");
struct dirent *files;
while(files = readdir(dp))
printf("Found file: '%s'\n", files->d_name);
}
bruce@rip:~/temp$ ./dir
Found file: '_install'
Found file: '..'
Found file: 'riscv-pk'
Found file: 'riscv-isa-sim'
Found file: 'hello'
Found file: '.'
Found file: 'dir.c'
Found file: 'line 1\
line2'
Found file: 'dir'
bruce@rip:~/temp$
bruce@mini:~/trv$ ./dir
Found file: '.'
Found file: '..'
Found file: 'instructions.inc'
Found file: 'dir.c'
Found file: 'line1\
line2'
Found file: 'trv'
Found file: 'trv.c'
Found file: 'dir'
Found file: '.git'
bruce@mini:~/trv$
Code: [Select]-rw-r--r-- 1 bruce bruce 4 Dec 8 11:56 'line 1\'$'\n''line 2'

# grep QUOTING_STYLE .bashrc
export QUOTING_STYLE=literalSo it seems the '\' got included in the real file name as well as the newline. So it probably wasn't necessary.
(..)
So it seems the '\' got included in the real file name as well as the newline. So it probably wasn't necessary.
GNU ls
Who even thought it's a good idea
- quite a while being: I deal with PERL since early 90s.
Trivial fix for such error: s/\n//g; # done
QuoteTrivial fix for such error: s/\n//g; # done
Such trivial search and replace efforts tend to find and replace stuff you didn't want changing. Really needs to be context-sensitive search, which I don't believe 's' is. Maybe without the 'g' so you can check each instance, eh?
Good job your perl skills are better than this trivial fix
Here is an example of not understanding what is going on.
I ran the Ubuntu updates earlier and got these 'error' messages. The final message stated the updates have been installed, but why did it have errors during the process?
I ran the Ubuntu updates earlier and got these 'error' messages. The final message stated the updates have been installed, but why did it have errors during the process?
Aww fuck, Lucas De Marchi seems to be the current kmod maintainer, and is adding libkmod to 'kmod' package in more recent versions.
Since I use Linux for 99% of everything, I just used it to check my most common commands used:Code: [Select]$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -n -k1 -r
As I have removing duplicates turned on, this only counts different variations of the same command, rather than the number of times actually used.
The (slightly redacted) results:Code: [Select]659 cd
600 git
564 l
489 sudo
419 riscv64-unknown-elf-gcc
388 ssh
386 gcc
344 man
332 scp
280 riscv64-unknown-elf-objdump
246 cat
242 rm
219 less
210 time
192 arm-linux-gnueabihf-gcc
159 clang
144 find
141 make
136 mv
120 echo
113 mkdir
104 emacs
92 spike
86 cal
82 du
81 objdump
73 file
72 ls
70 cp
69 top
69 for
65 arm-linux-gnueabihf-objdump
63 pushd
62 grep
50 perl
48 qemu-riscv64
48 df
41 which
41 tar
39 ifconfig
38 riscv64-unknown-elf-ld
37 riscv64-unknown-elf-as
36 riscv64-unknown-elf-objcopy
34 avr-gcc
32 riscv32-unknown-elf-gcc
31 qemu-riscv32
30 llc
30 ./configure
28 export
26 uptime
26 cmake
23 kill
22 aarch64-linux-gnu-gcc
21 seq
21 dos2unix
20 size
20 /home/bruce/software/arduino-1.8.10/hardware/tools/avr/bin/avrdude
19 ping
18 cut
18 avr-objdump
16 tail
16 python
16 opt
15 perf
15 minicom
15 lsblk
14 uname
14 popd
14 aarch64-linux-gnu-objdump
13 while
12 zcat
12 rmdir
12 ln
11 sort
11 ../configure
10 unzip
10 mtr
10 killall
10 gunzip
10 apt
9 wc
9 nslookup
9 lsb_release
9 chmod
8 diff
7 wget
7 set
7 pgrep
7 awk
7 apt-get
6 sync
6 asciidoc
5 stty
5 strings
5 riscv64-unknown-linux-gnu-gcc
5 curl
5 crontab
4 vi
4 pwd
4 lsusb
4 date
4 cmp
3 unix2dos
3 touch
3 shasum
3 screen
2 su
2 strip
C:\Users\newbrain> get-content (Get-PSReadlineOption).HistorySavePath | %{ $_.Split(" ")[0]} | Group-Object | Sort-Object -Descending -Property Count | format-table -Property Count,Name
Count Name
----- ----
288 git
31 Import-Module
23 .\iperf3.exe
18 format-hex
17 Get-Content
16 pip
16 $hex[0].ToString(
16 exit
16 cd
15 ping
15 C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe
11 ssh
10 Get-Module
9 $hex
8 &
8 Enter-PSSession
7 wsl
7
6 subst
6 python
6 tracert
6 help
5 nslookup
5 where.exe
5 scp
5 ipconfig
4 .\Documents\iperf-3.1.3-win64\iperf3.exe
4 Update-Module
3 $hex[0].Bytes[0]
3 New-Item
3 runas
3 dir
3 bash
3 python.exe
3 wslconfig.exe
2 rm
2 Get-Member
2 wsl.exe
2 Get-FileHashThe results are a bit skewed as this is my machine in Italy, not the main one in Sweden, but git dominates nonetheless...
I learned DOS way back before Windows and picked up on it quickly. Today I find it's still easy to navigate and remember commands. I've also used Linux (or Unix?), however, I find it's extremely confusing.
Linux seems like so many hidden commands. Recently I used DD to image a drive, and it took a very long time to figure out if my drive was connected, which one it was, and kept having command errors. . . .
Is there an opensource equivalent for SolidWorks ?
Do you get an error dialog? If not, then it is fine.