Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-06-2003, 08:17 PM   #1
Evan P.
LQ Newbie
Registered: Sep 2003
Location: Orange County, New York
Posts: 17

Rep: Reputation: 0
need hlp formatting output from ls test*

I am close to writing a simple script that resets the initial and supplementary groups of an ID. I get the IDs from the /home directory. Since I want to subset the names I use ` ls test*` which produces a colon after every ID (test231: and test444: etc.).

Is there a way to get rid of that colon?


Old 11-06-2003, 08:40 PM   #2
Evan P.
LQ Newbie
Registered: Sep 2003
Location: Orange County, New York
Posts: 17

Original Poster
Rep: Reputation: 0
Still looking for a better solution

I searchew the web and finally constructed the following:

sed 's/:$//' /home/epanagio/afile >/home/epanagio/bfile

This will replace the : character with nothing.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hlp PLLLLLLLLLLZ!!! Occulum Linux - Hardware 6 08-09-2005 04:47 PM (or similar command)...formatting output Basslord1124 Linux - Newbie 2 02-27-2005 05:13 PM
Formatting output of ls doodar Linux - Newbie 29 07-29-2004 01:25 PM
Bash Select Function: Formatting Output mooreted Linux - General 2 03-28-2004 06:26 AM
hlp me for mandrake farhan Linux - General 1 03-13-2003 01:10 PM

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration