Search Results

Search: Posts Made By: kashifv
3,019
Posted By kashifv
ok thanks skmdu. its working fine now. actually i...
ok thanks skmdu. its working fine now. actually i noticed one thing that after exec my "read -ep" command wasn't working properly and was unable to prompt for any input. may be there is some other...
3,019
Posted By kashifv
hi sorry to disturb again. the solution is...
hi

sorry to disturb again. the solution is ok but i have got a problem with it.

exec<"tempFile"
while read line
do
if [ -d $line ]
then
echo $line ;
fi
done


this script is ok...
3,019
Posted By kashifv
Thank You skmdu. its working fine. thanks again.
Thank You skmdu. its working fine. thanks again.
3,019
Posted By kashifv
sorry skmdu for the late reply. yes all...
sorry skmdu for the late reply.

yes all these paths exists in a file and i have to read that file and then i have to delete all those lines from that file which represent to files and keep only...
3,019
Posted By kashifv
skmdu sorry you were wrong, coz extension can be...
skmdu sorry you were wrong, coz extension can be "mpeg".

i think its not possible to check either its a file or folder without having a list of extensions. so the way ,which i am currently doing,...
3,019
Posted By kashifv
ripat, Please complete syntax. let me tell...
ripat, Please complete syntax.

let me tell you what i am doing right now.

at the moment i have in put in a file named temp. and i check from another file name key ( this file has all...
3,019
Posted By kashifv
Deleting particular lines.
hi all,

i have got a scenario in which i need to delete all the lines that ends with file names.

e.g.
input can be

cms/images/services_icons/callback.png ...
4,786
Posted By kashifv
Thank You All for Efforts and quick reply.
Thank You All for Efforts and quick reply.
4,786
Posted By kashifv
hi, Thanks for the reply. its working fine....
hi,

Thanks for the reply. its working fine. but just for more readability i dont want remove / at the end of line.
e.g

input wud be...

cp cms/images/wifi-zone.css.php

and output should...
4,786
Posted By kashifv
Thank You all. now i got the totally opposite...
Thank You all. now i got the totally opposite scenario.

i need that keep the line till the occurrence of last slash (/) and delete anything after that.

e.g

input wud be...

cp...
4,786
Posted By kashifv
Thank You very much guys. both solutions are...
Thank You very much guys. both solutions are working fine. this is really awesome. Hats Off for you people.
4,786
Posted By kashifv
delete line upto the nth occurence of a particular charachter.
hi all

i want to delete a line upto a particular character. here is example.

cp cms/images/wifi-zone.png

i want to delete the line till . (cp cms/images/wifi-zone.) so the output wud be...
Showing results 1 to 12 of 12

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