huf

joined 3 years ago
[–] huf@hexbear.net 2 points 1 day ago

i'm afraid it's M$ or MiKKKroSSoft. your choice.

[–] huf@hexbear.net 2 points 3 days ago

i'd probably do

function cap() {
        prename 's/(^[a-z]?)/\U$1/' "$@"
}

it means it has to be invoked as cap *, but it also means that you can do cap foo* or whatever

[–] huf@hexbear.net 3 points 3 days ago

when you create the alias, the shell substitutes the $1 (to nothing, probably) since your alias is in "" (double quotes).
now, if you swap the single and double quotes, then the substitution still happens, but at invocation time instead of at definition time.
you actually want perl to deal with this $1, so neither is good.

you have three options:

  • write a function instead, as has been suggested
  • use $'' quoting, which lets you put ' (single quote) inside ' (single quote) without going mad: alias cica=$'foo \'$bar\' baz'
  • go insane and do this: alias cica='foo '\''$bar'\'' baz' (this is the old way, without bash's $'')
[–] huf@hexbear.net 6 points 1 week ago

it's the fastest way to get crews for your navy

[–] huf@hexbear.net 12 points 1 week ago (1 children)
[–] huf@hexbear.net 2 points 2 weeks ago (3 children)

none. you dont need a DE, you can just run a tiling wm and some terminals...

[–] huf@hexbear.net 3 points 2 weeks ago

yes, but old people can get over that and just stop giving a fuck and accept that they're weird now. it must be liberating.

[–] huf@hexbear.net 2 points 1 month ago

oh yes it made the noise.

[–] huf@hexbear.net 5 points 1 month ago

god, the original job creator.

[–] huf@hexbear.net 1 points 1 month ago

are you using ntfs-3g or the older shittier ntfs driver?

[–] huf@hexbear.net 3 points 1 month ago

makes sense, since we're on youtube for the ads

[–] huf@hexbear.net 3 points 1 month ago

what do you mean the output doesnt keep the LF? what LF?

ps also has -u and -U switches to filter by users

view more: next ›