Search Results

Search: Posts Made By: chris55
36,057
Posted By chris55
#!/bin/sh counter=0 x=0 cat file | while...
#!/bin/sh
counter=0
x=0
cat file | while read LINE
do
echo $LINE
let x=$x+1
echo $x (increments like it's supposed to)
done

echo the $x (returns 0)


Can someone explain how to get...
Showing results 1 to 1 of 1

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