334 reputation
317
bio website
location
age
visits member for 2 years, 2 months
seen 12 hours ago

Shyy erny anzr - Naqernf Rvonpu


Sep
9
revised awk: Extracting a fixed number of rows where the last row number may vary
added 11 characters in body
Sep
9
revised awk: Extracting a fixed number of rows where the last row number may vary
added 252 characters in body
Sep
9
asked awk: Extracting a fixed number of rows where the last row number may vary
Sep
1
revised How can I use wget to create a list of URLs from an index.html?
added 1 character in body
Sep
1
revised How can I use wget to create a list of URLs from an index.html?
added 161 characters in body
Sep
1
answered How can I use wget to create a list of URLs from an index.html?
Sep
1
comment wget: Retrieving a list of URLs when modifying input data file on the fly
Well, the basic problem is that there were two very useful comments which ought to have been posted as answers. However I guess this has been done on purpose, because both of the commenters were not entirely sure since they could not "live-test" it at the moment they posted it. So both of them or just one may turn theirs into an answer, and I'll put the checkmark on it. But not on my own one, that's silly.
Sep
1
comment wget: Retrieving a list of URLs when modifying input data file on the fly
@garethTheRed You're a marvel. Doing them in this order works. Thank you very much. But thanks as well to Mark for the alternate solution, which works if you use wget -nc -i <(cut -f1 -d' ' inp). No dollars here. :)
Sep
1
revised wget: Retrieving a list of URLs when modifying input data file on the fly
corrected title. It's URLs that's in that ascii data file, which wget reads.
Sep
1
asked wget: Retrieving a list of URLs when modifying input data file on the fly
Sep
1
awarded  Quorum
Aug
31
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.
Aug
30
revised find: Why is the -a operator not commutative in combination with -print?
cleaned up headline/title
Aug
30
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.
Aug
30
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.
Aug
30
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
Aug
30
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.
Aug
30
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 :)
Aug
30
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.
Aug
30
revised find: Why is the -a operator not commutative in combination with -print?
fixed typo