View Single Post
  #2 (permalink)  
Old 25th December 2006, 07:49 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,195
Thanks: 13
Thanked 394 Times in 292 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

To omit something from file use grep command
Code:
grep -v "word-to-omit" filename
Above command will omit any matching word. To just remove/omit first line use combination of wc and tail -f command:
Code:
tail -n $(wc -l filename | awk  '{ print $1-1}') filename
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote