Search Results

Search: Posts Made By: barryxian
Forum: Linux 07-28-2010
14,886
Posted By kurumi
#!/bin/bash i=0 while read -r LINE do ...
#!/bin/bash
i=0
while read -r LINE
do
((i++))
case "$LINE" in
"DEF") echo "line num: $i";;
esac
done <"file"



---------- Post updated at 10:43 PM ---------- Previous update...
Forum: Linux 07-28-2010
14,886
Posted By bankai
VAR=`grep -n "text" <file>`
VAR=`grep -n "text" <file>`
Showing results 1 to 2 of 2

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