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 ''
)but without traditions, we’re just drifting aimlessly through life
none. you dont need a DE, you can just run a tiling wm and some terminals…
are you using ntfs-3g or the older shittier ntfs driver?
makes sense, since we’re on youtube for the ads
what do you mean the output doesnt keep the LF? what LF?
ps also has -u and -U switches to filter by users
i’m going by hearsay here, i dont know what school is like in the US. i know what a single school was like in about 1998, but that doesnt tell me much about the rest of the country.
but from what i hear, the US has security gates and cops in schools, and the cops regularly brutalize and arrest the kids for random bullshit.
then they’ll put a cop next to each one of them and the cop will shoot the kids who come near it. that’ll fix it.
bring into fashion unix tools saying more things like “lo”.
lo! alas! but soft!
it took less than a day for someone to break run0 totally open, so basically, you have a choice between a well tested/debugged sudo and this new thing which may eventually mature
i have bad news: bash is already a massively improved/extended ksh clone. ksh was a massively improved/extended sh clone. sh got a ton of improvements early on.
this is about as good as you can get without breaking compatibility completely (bash already breaks compatibility with posix sh in some ways).
anyway, once you’ve figured out the hermetic incantations required to work with filenames with whitespace in them, it’ll be time to write scripts that can handle filenames with newlines in them :D
yeah, i’ll think about it when notion runs on it
^S - stop terminal IO
^Q - resume terminal IO (if your terminal looks frozen, this is the one to try)
alt-b, alt-f - jump back/forward one word
it sanctions other CPUs and strong arms them into giving up their cycles
you must wait for your children or you will accumulate zombies.
surprisingly good parenting advice from the art of unix programming.
zero is even, so i dont see how that one’s wrong
so we’re doing the IE6 era again… ahh, makes me feel young
i’m afraid it’s M$ or MiKKKroSSoft. your choice.