Reputation
710
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 24
Impact
~32k people reached

Aug
8
comment Shell script to fetch part of file name from input file and transform it into output file
@Allen and OP seems to always use new username per question ;-) look this "question". Same user. 100.0% sure.
Aug
8
comment Transform CSV file using shell script
@Archemar I even hope so. This is not a write-me-a-script forum. Besides, I am really wondering why some of us IT people are unemployed and why OTOH some others do get employed who obviously do not have the basic logical skills to accomplish various tasks? Supposing I would write a script for him, A to Z. And who would grub the big $$$ at the end of the month? Not me, no? See, that's where things get interesting...
Aug
6
comment Linux replace last character in a csv file to new string
Thanks for the feedback. Works fine for me. You MUST have #!/bin/bash as first line, as my solution will only work with bash, not sh. I've just read you're using SunOS...maybe you actually got csh or ksh instead of bash? (This was actually the case with the SPARC workstations I had to fight my way through 15 years ago.) The syntaxes of csh and ksh differ a lot from bash's one.
Aug
6
revised Linux replace last character in a csv file to new string
added 567 characters in body
Aug
6
comment Linux replace last character in a csv file to new string
OK, I'll add a shorter solution, but I'll keep this one anyway. I hate to use the sed -i fix-in-place option on the original file, because if there is anything wrong or misinterpreted, your original data will be messed up.
Aug
6
revised Linux replace last character in a csv file to new string
added 18 characters in body
Aug
6
answered Linux replace last character in a csv file to new string
Jul
30
revised Passing parsed output of sed to find (in this direction)
deleted 7 characters in body
Jul
28
revised Using sed to extract text between 2 tags
added 47 characters in body
Jul
28
answered Using sed to extract text between 2 tags
Jul
24
revised Trying to do arithmetic in Perl rename tool (Debian)
added 20 characters in body
Jul
21
revised Facelifting XClock while using Xrender: A long and winding road
formatting tweak
Jul
21
accepted Facelifting XClock while using Xrender: A long and winding road
Jul
21
awarded  Popular Question
Jul
21
revised Error while installing wget and unzip
added 332 characters in body
Jul
21
answered Error while installing wget and unzip
Jul
21
comment Execute only if it is a bash function
Oh thanks, didn't know that. I'm not going to use it though; the latter variant you quoted will increase readability by at least 25 percent (IMHO), since the $@ will even be understood by bash programmers who only know the more basic syntax.
Jul
21
comment Execute only if it is a bash function
This is really supposed to work? for f do? Shouldn't that be for f in <something> do instead? I'm wonder if a certain boolean condition could actually turn this into an infinite loop...
Jul
18
comment PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'
What about extension=mysql.so in php.ini? Just checked a closely related RPM package (CentOS 7) and in that case, the module was actually found under /usr/lib64/php/modules/mysql.so! If that works, the packager should get a decent slap, because of breaking common file naming due to doing things his own way!
Jul
18
comment PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'
Looks like Fedora, but I'm not that sure...might as well be RHEL