Search Results

Search: Posts Made By: diliphp
1,852
Posted By diliphp
just try directing the path to the folders...
just try directing the path to the folders containing .java files.
U can try

for file in `ls /INDIA/SSS*/Scr*/*.java`
10,128
Posted By diliphp
while read phrase do script.sh $phrase...
while read phrase
do
script.sh $phrase
done<phrases.txt

this code shud take the phrases line by line
1,852
Posted By diliphp
for file in `ls ${PWD}/INDIA/*.java` do ...
for file in `ls ${PWD}/INDIA/*.java`
do
head -n 3 $file | tail -1 >> sometempfile
done
cat sometempfile

I think this code shud do the job.
8,735
Posted By diliphp
after many trials its finally working using sed. ...
after many trials its finally working using sed.

sed 's/X\([0-9][0-9]*\)/X(\1)/g' filename

there must be some problem with regular expression with a +.
dont know wat the problem is but this...
8,735
Posted By diliphp
I tried this command in my system and its not...
I tried this command in my system and its not recognising the \+\ .
the output file remains unaltered.its not capturing one or more digits.
if i use just [0-9] its working on a single digit. ex
X...
8,735
Posted By diliphp
this code is not working. anyways thanks for the...
this code is not working. anyways thanks for the reply
8,735
Posted By diliphp
sed substitution problem
Can anyone please help me on this.

i have a file with lines say

X X3200 X
X X
X2400 X X4100

I want to use sed to put the numbers in braces.
the output should be like,

X...
Showing results 1 to 7 of 7

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