195 reputation
215
bio website
location
age
visits member for 1 year, 11 months
seen 2 hours ago

Shyy erny anzr - Naqernf Rvonpu


9h
awarded  Quorum
23h
revised find: Why is the -a operator not commutative in combination with -print?
Oops, asterisks (\*) need to be quoted when they're not meant to be used as markup, but literally.
1d
revised find: Why is the -a operator not commutative in combination with -print?
cleaned up headline/title
1d
comment Use find to find certain directory and delete all files in it except one directory
Yes I agree it IS better than the great part of the other Bash PF articles. (I never link you to any pointless crap, mind you :)) And thanks for the link.
1d
comment Use find to find certain directory and delete all files in it except one directory
Well, you're the first to complain about me linking it. Seriously. Though not all "tips" might be the creme de la creme, there are lots of neat tricks in there that have helped me many times. Still, I'm no "gregwoo fanboi" - but I wouldn't go as far as daring accuse him of "ignorance" either.
1d
comment Use find to find certain directory and delete all files in it except one directory
Well it was supposed to mean that the first subshell doesn't know anything of the second, if there are two. And so things might give different results as you would expect because both subshells are independent of each other. But you might expect parameters to be "known" to both. (Heck, you even used export, so why doesn't that work?) However, you debug variables and get zero length and other nonsense. YMMV...but since I've avoided cd in scripts and specified paths directly instead, my scripts are less prone to errors. mywiki.wooledge.org/BashPitfalls#cd_.2Ffoo.3B_bar
1d
comment find: Why is the -a operator not commutative in combination with -print?
Looks excellent now in my opinion. Thanks for your agreement on improvement. As you have seen, this stuff is way trickier than it looks at first.-- Lastly, this has now turned a great solution for alias as well. Remember, alias needs the argument at the EOL, and the -print was in the way all the time. Thanks to your marvellous "dummy option" -a -name ., this is now feasible. Fantastic! Thank you.
1d
comment find: Why is the -a operator not commutative in combination with -print?
Well, that's not quite the same. Try it out. "./exclude_me" does get listed once you omit the -print at the end of the line. But I want it both excluded and not even listed at all. Not until you add the explicit -print, however, "exclude_me" will actually be left out of the listing. Trust me, I can try here "live" and I know what I'm talking about :)
1d
comment Use find to find certain directory and delete all files in it except one directory
Well, I think the downvote is fully justified in this case. It always makes my toenails roll up whenever I see cd in a shell script. This will cause nothing but trouble. Think of shell sessions, subshells, subshell A not knowing anything of subshell B and their parameters and vice versa---and so on. Avoid.
1d
revised find: Why is the -a operator not commutative in combination with -print?
fixed typo
1d
asked find: Why is the -a operator not commutative in combination with -print?
Aug
29
comment Why do we use double hyphen in “tar --anchored” and single hyphen in “tar -b”?
@Zeke Ugh! Don't you remind me of that.
Aug
29
comment Why do we use double hyphen in “tar --anchored” and single hyphen in “tar -b”?
I guess it's pretty simple. tar (= "tape archiver", think of QIC-80 and friends) is a VERY old command from the beginnings of UNIX, and in the old days, there were only those said -X options. I've scoured the man page, and I can't remember any tar option being available from the old days that took 2 dashes. Hence, there is a rule of thumb that all of the latter ones are commands which were added much later during recent years.
Aug
25
comment How to set conkys window width?
Yes, but it will only work every second time when .conkyrc is edited with gedit, as I've found out. So you edit it, save the file - nothing happens. You edit it again (a pseudo-edit might do)...and all of a sudden, conky will detect the config file change and restart automatically.
Aug
25
comment conky: proper column alignment
conky -D might come in handy as well perhaps (will put conky into debug mode, letting you peek way more deeply into its inner workings, and maybe giving you a clue what your build of conky is "allergic" against)
Aug
24
comment diskio/diskiograph in Conky only understands physical device names?
And again you're right!! Once I omit the parameters, I get ugly colors and wrong height, but yes it works! However, I can't accept this. I ought to file a bug report that the parameters will actually "kill" the graph when no physical device name is given.
Aug
24
comment diskio/diskiograph in Conky only understands physical device names?
Well, my whole line is ${diskiograph /dev/disk/by-uuid/1234567890ABCDEF 15, 130 828282 7f8ed3 0.1 -l}. Since there are a decent lot of parameters following the UUID, it's only natural that there is a space after it. :) diskio is not diskiograph; the former does not take any parameters.
Aug
24
comment diskio/diskiograph in Conky only understands physical device names?
Proposal dismissed! This isn't chit-chat. I was even rather frowning upon getting this "chit chat warning" by SE. It's IMHO uncalled-for, and I felt treated like an immature teen.---Back to conky: Unfortunately this only works for diskio+label symlinks, but not with diskiograph. That is, when used with the latter, it will not complain about path not found, but it won't display anything either in the graph. Doing the same with the physical path did work instantly, though.
Aug
24
comment diskio/diskiograph in Conky only understands physical device names?
You're a marvel, thank you so much! So I will need to replace conky by conky-ng (a fork, see github.com/Tucos/conky-ng). I just don't understand why this hasn't been implemented yet in the "standard" conky. It's such an essential feature to have in udev times.
Aug
24
revised diskio/diskiograph in Conky only understands physical device names?
formatting fixed + improved