Computing.Net > Forums > Linux > Delete file content with a script?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Delete file content with a script?

Reply to Message Icon

Name: upal_2
Date: November 25, 2003 at 22:09:05 Pacific
OS: Win98 Se
CPU/Ram: 700Mhz
Comment:

I would like to know if it is possible to write a batch file (script?) which will delete the contents of the file
listed below. If so, what are the basic steps, I realise you probably cant list all the steps, just an overview.

/home/maxesw/.kde/share/apps/kcookiejar
/home/maxesw/.kde/share/apps/konqueror/kong_history
/home/maxesw/.kde/share/config/kong_history

What I am trying to do is, come up with a simple method of clearing my drop down list of URLs in Konqueror.
After a couple of days of using the Internet, the drop down list contains an entire load of URLs. I have been
removing the entries by hand but it seems like there should be an easier way. I would like to be able to click
an icon to do this for me?

Thanks in advance for any input.

A still dripping wet (and crying) newbie



Sponsored Link
Ads by Google

Response Number 1
Name: Balram Adlakha
Date: November 26, 2003 at 02:15:01 Pacific
Reply:

echo > /home/maxesw/.kde/share/apps/
kcookiejar

echo > /home/maxesw/.kde/share/apps/
konqueror/kong_history

echo > /home/maxesw/.kde/share/config/
kong_history

but there must be an option in konqueror to
do it... If not just add the above commands
to your user crontab.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Delete file content with a script?

assign password with a script (urgent) www.computing.net/answers/linux/assign-password-with-a-script-urgent/11580.html

Live CD with a script on booting www.computing.net/answers/linux/live-cd-with-a-script-on-booting/29873.html

Help with a bash script www.computing.net/answers/linux/help-with-a-bash-script/4011.html