origin of command -v Does anyone recall the historical origin of 'command' (and in particular the -v and -V options)? AFAICT, it first appeared in 1992 in POSIX.2 and XPG4. The ksh93 sources and docs say that it was added in 1993 and that it was not included in ksh88 (11/16/1988). So, it seems likely it was added for compliance wi... 10 Aug 2010 22:26
Substituting characters Hi , I need substitute this character: ' By this: " How could I make this task using tr or awk ? thanks ... 9 Aug 2010 16:48
(bash) Help with 'let', ?:, and pattern matching i=+1 let I=1?I$i:$i ; echo $I works and displays 1 (and running the last line again displays 2, and so on) Now, note that: [[ $i == +* ]] && echo hi does the expected thing (displays hi). But what I want is (for what should be obvious reasons; if they are not, let me know) let I=[[ $... 11 Aug 2010 18:02
Evaluating variable Hi, Can you help me with evaluating variables ? cat g5 #!/bin/ksh descr940="DataStaging System" for INT in 940 do echo $descr$INT done ./g5 940 (I need 'DataStaging System' output) ... 9 Aug 2010 12:19
Regex batch filename modification in working directory? Chris F.A. Johnson wrote: On 2010-08-09, Tuxedo wrote: [...] for file in *__*.jpg do mv "$file" "${file#*__}" done Thanks for this including your advise why best avoid the use of 'ls' and sed for this particular task. Your command works fine of course. Tuxedo [...] ... 9 Aug 2010 03:35
Symbol for "not" within [] I've been using something like this: [[ a/bc == [^/]*/*[^/] ]] && echo match (the "a/bc" is an example value) to test whether a variable contains a file name having a relative path, and it worked fine with bash. But then I started using the Interix ksh and it failed. So I had to read the man pages ag... 11 Aug 2010 14:44
Thinking about a new shell Hello, First, let me to thank all people involved in this group for your continuous support, that saves me a lot of troubles. After years as user of shells, several problems with all them appears always. Some examples of these problems are: lack of ortogonality (an example, a command "ls" with some sorting ... 9 Aug 2010 10:06
Regular Expression I have data in a file that I need to do a global replace on. Each line starts like this: 1, 2, Basically a number then a comma then a space then a number then a comma then a space. I need to do a global replace throughout the file so it looks like this: 1||||2|||| (So number then 4 pipes then number ... 7 Aug 2010 06:06
bash 4.1 interix I compiled bash 4.1 on Interix and process substitution works with backquotes, but not with $(...), I get an error message. Any ideas? -- Web mail, POP3, and SMTP http://www.beewyz.com/freeaccounts.php ... 7 Aug 2010 20:10
x883dbb <a href="http://99c7d9.com">2c5348</a> | [url=http://5a4567.com]482b1b[/url] | [link=http://0b6e3e.com]931cce[/link] | http://ab34b8.com | 538377 | [http://43a026.com 2f0605] ... 5 Aug 2010 14:39 |