Search Results

Search: Posts Made By: benalt
1,329
Posted By methyl
Thank you for posting the solution. It is a...
Thank you for posting the solution. It is a common problem which appears daily on unix.com. Mainstream unix uses line-feed as a record terminator in text files whereas MSDOS (and thence Microsoft...
1,329
Posted By alister
Thanks to the carriage returns, it only looked...
Thanks to the carriage returns, it only looked like it wasn't being printed. When the shell read the lines into the variables, using the \n as the delimiter, the string assigned to the variables...
1,329
Posted By bakunin
First off, it would have been nice to tell the...
First off, it would have been nice to tell the interested audience which shell you are using. I take it, from the "read -u" command, which is not there in bash, that you are using a ksh (probably...
1,764
Posted By Scrutinizer
This method of assigning variables can be relied...
This method of assigning variables can be relied upon, and I think it is more convenient than -v, but note that the variable will not be available in the BEGIN section. The special meaning of setting...
1,764
Posted By Corona688
That's an old-fasioned way of setting variables...
That's an old-fasioned way of setting variables in awk. Setting a blank field-separator means, in some versions of awk, to split on every single character.

So what it's actually doing, is setting...
1,764
Posted By Scrutinizer
Not as a pattern match, it prints the last...
Not as a pattern match, it prints the last character if it is unequal to "" or 0. Everything in awk has the form condition{action}. If the condition evaluates to 1 then the action is performed. If...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy