Which shells support ANSI-C quoting? e.g. $’string’
I have a shell script that uses the following to print a green checkmark in its output:
I have a shell script that uses the following to print a green checkmark in its output:
$ file /lib/ld-linux.so.2 /lib/ld-linux.so.2: symbolic link to i386-linux-gnu/ld-2.27.so $ readlink -f /lib/ld-linux.so.2 /lib/i386-linux-gnu/ld-2.27.so $ file /lib/i386-linux-gnu/ld-2.27.so /lib/i386-linux-gnu/ld-2.27.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=7a59ed1836f27b66ffd391d656da6435055f02f8, stripped So is ld-2.27.so a shared library? It is said to be a dynamic linker/loader and mentioned in section 8 of man. So is it … Read more
I am trying to get a list of open files per process. I ran the following one-liner from PerlMonks:
When I try to redirect the output of cut it always seems to be empty. If don’t redirect it, the output shows in terminal as expected. This is true for OS X 10.10 and Linux 4.1.6.
I am working on a CentOS server and schedule a task with command at
What’s a better way to implement print_last_arg?
This is an exploration question, meaning I’m not completely sure what this question is about, but I think it’s about the biggest integer in Bash. Anyhow, I’ll define it ostensively.
In most POSIX compliant shell like bash. ksh, dash, mksh, pdksh, when variable assignment occur, field splitting and filename expansion (and brace expansion if the shell supports) are not performed in RHS of assignment:
According to man perlrun: