Search Results

Search: Posts Made By: engr.jay
1,935
Posted By apmcd47
Untested: #!/bin/sh while read name age...
Untested:
#!/bin/sh
while read name age gender
do
printf "My name is %s. I am %d. %s\n" $name $age $gender
done
If the script is called process and the file is called file execute:
sh...
1,935
Posted By rdcwayx
awk '{printf "My name is %s. I am %d. %s\n" ,...
awk '{printf "My name is %s. I am %d. %s\n" , $1,$2,$3}' infile
5,799
Posted By radoulov
If I'm guessing right (you will loose the...
If I'm guessing right (you will loose the original order):

awk 'END {
for (key in count)
if (count[key] == 1)
print rec[key]
}
{
count[$2, $3]++
rec[$2, $3] = $0
}'...
2,759
Posted By Scrutinizer
Try this: awk '/\/-/{print $1 FS p}{p=$1 FS...
Try this:
awk '/\/-/{print $1 FS p}{p=$1 FS $2}' infile
Showing results 1 to 4 of 4

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