All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] script to delete all trailing space
@ 2007-03-12 10:14 Aubrey Li
  2007-03-12 11:59 ` Wolfgang Denk
  2007-03-12 23:52 ` Timur Tabi
  0 siblings, 2 replies; 12+ messages in thread
From: Aubrey Li @ 2007-03-12 10:14 UTC (permalink / raw)
  To: u-boot

Hi all Custodians,

I'm suffering from coding style issues when I request a blackfin git
pull to the upstream u-boot. Here I wrote a simple script(attached) to
delete all the trailing space in the files. Hope it's useful for you
and feel free to re-write it.

Best Regards,
-Aubrey

------------------------------------------
#!/bin/sh
# delete all the trailing white space characters (SPACE and
# TAB) at the end of all the lines in a file
# Usage:
#|______./strip-trailing-space.sh files
#
# The script:
#
#  Copyright (C) 2007 Aubrey Li, All Rights Reserved.
#
#  This script is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License version 2 as
#  published by the Free Software Foundation.
strip()
{
|_______cp $1 $1~
|_______sed -e 's/\s\+$//' < $1~ > $1
}

for i in $*
do strip $i
done
------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strip-trailing-space.sh
Type: application/x-sh
Size: 501 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070312/a0ec47c3/attachment.sh 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-03-13  2:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 10:14 [U-Boot-Users] script to delete all trailing space Aubrey Li
2007-03-12 11:59 ` Wolfgang Denk
2007-03-12 13:46   ` Aubrey Li
2007-03-12 13:51     ` Peter Pearse
2007-03-12 14:06       ` Aubrey Li
2007-03-12 16:36         ` Jon Loeliger
2007-03-12 16:52           ` Grant Likely
2007-03-13  0:51           ` Aubrey Li
2007-03-12 23:52 ` Timur Tabi
2007-03-13  0:26   ` Aubrey Li
2007-03-13  0:45     ` Grant Likely
2007-03-13  2:49       ` Aubrey Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.