LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-06-2003, 09: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?

Thanks,

Evan
 
Old 11-06-2003, 09: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.

Evan
 
  


Reply


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 05:47 PM
CLI....ls (or similar command)...formatting output Basslord1124 Linux - Newbie 2 02-27-2005 06:13 PM
Formatting output of ls doodar Linux - Newbie 29 07-29-2004 02:25 PM
Bash Select Function: Formatting Output mooreted Linux - General 2 03-28-2004 07:26 AM
hlp me for mandrake farhan Linux - General 1 03-13-2003 02:10 PM


All times are GMT -5. The time now is 10:21 PM.

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