• 4 Posts
  • 110 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle




  • Your problem is most likely escaping. $1 has a meaning in regex and in shell. You want the former and the single quotes achieve this.

    In your second example, with alias, probably the shell interpreting this replaces $1 with whatever the first arg in the shell environment is, probably the empty string.

    Not sure what the problem with the shell script is. Anyway try escaping the $ as $ and \ as \.

    You can see where you are wrong if you replace prename with echo for debugging. Or in a shell script do

    set -ex





  • Valid question. You can ask this about many things:

    Would the Internet as we know it exist if Facebook, AOL, and Yahoo had united to create a walled garden?

    Would Macbooks as we know them today exist without an open source ecosystem? Would the company Appke exist? Would there be an iPhone?

    Would the web exist without Linux? Both developed at the same time, 1991 till now, and most stuff runs on Linux servers.

    Would the people who build all the hardware and software even be interested in computers had they not played with (build) computers in the 90ies? What if we had given them an iPad aith CandyCrush that just works; and not BIOS codes, cables, extension cards and drivers?













  • I miss the times when bodies found off the Sicilian coast meant Mafia.

    The decomposed bodies were discovered near the island of Sicily, which lies off the southwestern tip of the Italian mainland.

    The bodies were taken to another Italian island, Lampedusa, about 350 kilometers (217 miles) away.

    The bodies are believed to have been on board a boat that sunk earlier this week in Libyan waters, Italian media said, citing officials.

    So, even if they are dead we push them back to Lampedusa. And claim that they sunk in Syrian waters. Because nothing bad can happen in Europe.