Search Results

Search: Posts Made By: pradyumnajpn10
3,986
Posted By bakunin
You always have something interesting to...
You always have something interesting to contribute, so: you're welome!



You noted some very good books and, yes, if we are talking shell programming they might be better places to look at...
3,986
Posted By drl
Hi. Apologies to jump in here with such a...
Hi.

Apologies to jump in here with such a lengthy post.


And I heartily agree with that.

However, that 700-page tome might not be the best place for shell scripting practices. If one is...
3,986
Posted By MadeInGermany
You can use an extra descriptor for reading from...
You can use an extra descriptor for reading from the file.
The stdin=1 default remains where it is (usually /dev/tty but who knows?)
while read -r line <&3
do
echo "$line"
...
done 3<"$1"
3,986
Posted By bakunin
Just the way Scott has pointed out to you - it is...
Just the way Scott has pointed out to you - it is one of the "correct" ways to solve that problem.

Something you might think about is to "structure" your program differently, but this has nothing...
4,490
Posted By Don Cragun
In addition to what MadeInGermany has already...
In addition to what MadeInGermany has already said, I'm confused by the "pattern" you've shown us above. I would guess that rather than that being a pattern, it is a sample of the data that might be...
4,490
Posted By RudiC
I'm not sure what "risk" you expect. As is, the...
I'm not sure what "risk" you expect. As is, the awk script will read only the files and output to screen. I don't think any damage can be done hereby.
There are, howsoever, some improvement...
Showing results 1 to 6 of 6

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