Forum: Shell Scripting Jan 3rd, 2009 |
| Replies: 2 Views: 847 sed "${i}s/$/${age}/g" birthday.csv
Worked great thanks very much :) |
Forum: Shell Scripting Jan 3rd, 2009 |
| Replies: 2 Views: 847 Can I use my own variables within awk and sed for example:
I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a... |
Forum: Shell Scripting Jan 3rd, 2009 |
| Replies: 3 Views: 1,096 That works great thanks :D |
Forum: Shell Scripting Jan 1st, 2009 |
| Replies: 3 Views: 1,096 Hi,
how do you append to a variable? I can only get it to work with a seperate file like this:
printf $number1 >> sum.txt
I tried this :
$number1 >> $sum
but it says $sum: ambiguous... |
Forum: Shell Scripting Dec 29th, 2008 |
| Replies: 1 Views: 590 Hi I have a simple question.
Is there an easy way read a date of birth from a file and calculate how old that person is based on today's date? And would I need the make sure the birthdates are... |