So once you are sure your selection only select what you want to remove, then add the removal directive
This is just an example, feel free to adapt to your needs
Last edited by ctsgnb; 07-06-2011 at 02:16 PM..
Reason: ======> Thanks Alister for pointing out the missing {}
Hello everyone,
Simple I think? The ps command on linux seem to cut off the full command and makes grep useless, unlike Solaris. Here is an example:
Solaris
ps -aef|grep blue
larry 7111 1 0 Mar 26 ? 0:00 xterm -fg white -bg black -cr blue -j -s -sl 100
Linux
ps -aef|grep blue ... (4 Replies)
Hi All
We are migrating our projects from unix environment to linux. I tried running a install script which sets up my project, i.e. the directory structure and all. But in the middle of the script i started receiveing following error : nawk: command not found .
So i need to know which... (1 Reply)
guys im new here and i need help with some linux commands.
filea has keyword on each line
identity
aaa
bbb
ccc
i have following commands.
egrep 'www.identity' ~/home/m3 >~/home/lopo2
wc -l file ~/home/lopo2
say lopo2 has 44 lines
then output saved is
identity 44 (1 Reply)
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)