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
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
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:
''
quoting, which lets you put ’ (single quote) inside ’ (single quote) without going mad: alias cica=$'foo \'$bar\' baz'
alias cica='foo '\''$bar'\'' baz'
(this is the old way, without bash’s ''
)it’s the fastest way to get crews for your navy
none. you dont need a DE, you can just run a tiling wm and some terminals…
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.
oh yes it made the noise.
what do you mean the output doesnt keep the LF? what LF?
ps also has -u and -U switches to filter by users
vidir
is similar
there’s also rename
(the perl one, not the shit one). i have fond memories of renaming albums with rename 's/(\d+)/sprintf "%02d", $1/e'
so they’d ls in the correct order
i rely on this in my job. if i really need it, i’ll be using it often enough that it’ll always be in ^R distance :)
mmmmmm <3
no, tmux is a newer screen. some of us havent switched cos we’re too lazy i guess? i think the common wisdom is that it’s better. i havent tried cos i already know enough of screen and it’s fine for me
atools
, which includes als
, aunpack
, apack
. so you can stop caring about the kind of archive and just unpack it. it also saves you from shit archives that have multiple files/dirs in their root.perl -e
/ perl -lne
/ …units
bc
- a calculator that’s actually goodpass
- the only non-shit password store tool i’ve found so far. no gui, uses gpg and git to do the encrypting and storage/sharingalias lr='ls -lrth'
- so you can easily find the newest file, cos that’s frequently what you wantunip
- my script to look up things in the unicode dbfind -type f -exec xzgrep 're' {} +
- because xzgrep cant do -rdoesnt actually do anything on gnu rm, and hasnt in like a decade. but yeah, dont do it.
super cheap. no rent.
accepting your baldness will always look better than being all about it.
though that doesnt seem to be the issue here.
dont watch the sequel (i havent either).
but yeah, it’s a james bond type story set in a super weird garbled mirror image of the cold war. with mice and cats. and bats. and rats.
man i’m gonna re-watch it tonight. got myself hyped up :D
cat city
DOS -> win95 -> win98 -> debian (and i’m still here 24 years later…)
i’m afraid it’s M$ or MiKKKroSSoft. your choice.