Search Results

Search: Posts Made By: ariuscy
3,445
Posted By ariuscy
count word
hi,

given a file
i need to get the first line and secodn line
and count each of the line whether the length of first line and second line is the same

i don;t know how to get the length of the...
1,812
Posted By ariuscy
how to know the line number
hi all, how to know the line that the file currently reading

example:
exec 4<$1
while read eachline <&4
do
if [ "$eachline" == "POST" ]
then
/*here i want to which line number when...
7,730
Posted By ariuscy
sorry, can explain to me "sed -ne 's/,$//p'" ...
sorry, can explain to me "sed -ne 's/,$//p'"

wat is mean by -ne? then ,$?
thank you very much....as i just new to this

by the way, thank you everyone for replying my msg.Thanks :p
7,730
Posted By ariuscy
below is what i tried so far, any good idea ...
below is what i tried so far, any good idea
hasDetail='FALSE'
exec 4<$1
while read eachline <&4
do

if [ "$eachline" == ")" ]
then
hasDetail='FALSE'
fi
if [ "$hasDetail" == "TRUE" ]...
7,730
Posted By ariuscy
read line and read next
hi, :cool:
there is a text like this in text.txt

DETAILS (
USERID,
USERNM
)

how to find the 'DETAILS (' and start to read next line until meet the char ')', when read next line i need to...
Showing results 1 to 5 of 5

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