Computing.Net > Forums > Linux > sed appending line

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.

sed appending line

Reply to Message Icon

Name: gera
Date: October 14, 2006 at 18:31:31 Pacific
OS: Linux
CPU/Ram: x86
Comment:

I need help ..

I want to append a line in my file ..

A good Example will be the file /etc/X11/prefdm

if [ -f /etc/sysconfig/desktop ]; then
source /etc/sysconfig/desktop>/dev/null 2>&1
[ -n "$DISPLAYMANAGER" ] && DESKTOP=$DISPLAYMANAGER
if [ "$DESKTOP" = GNOME ]; then
preferred=gdm
elif [ "$DESKTOP"="KDE" -o "$DESKTOP"="KDE1" -o "$DESKTOP"="KDE2" ];
then
preferred=/usr/bin/kdm
elif [ "$DESKTOP" = AnotherLevel ] ; then
preferred=/usr/X11R6/bin/xdm
fi

--> here I want to add preferred=/usr/xxxxxxx
fi

Thanks,



Sponsored Link
Ads by Google
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: sed appending line

System Processing www.computing.net/answers/linux/system-processing/28106.html

Where is www.computing.net/answers/linux/where-is-/24077.html

Floppy in use (Mandrake 8.1) www.computing.net/answers/linux/floppy-in-use-mandrake-81/10544.html