09-27-2006
UNIX in the MacIntosh (for sed people)
Hi,
I'm trying to use sed to process some files on Macs running OSX. Anyone know anything about Macs and sed?
Here's the problem
sed 's/^/ /g' test_file > endfile
(there are spaces betwen the second and third /, but the forum software compresses them)
This should put spaces at the beginning of every line (I'm fairly sure, tho' not positive about this). But it's only putting spaces at the beginning of the first line of a file.
Any thoughts? I've already had problems with Mac's idea of sed and the \n newline character (Mac's sed doesn't seem to recognize it). And downloading GNU's sed onto all the machines here (aobut 200) isn't an option, but we've got a lot of files to process.
Any help would be appreciated.
Best wishes,
Laurel
9 More Discussions You Might Find Interesting
1. Where do I download LINUX & UNIX?
Hi all,
I'm a Mac-user (imac se at the moment), using Mac OS 9.1
I really want to learn how to work with unix-systems.
What is the best place for me to start?
Where can i download a system?
Can i still use my imac as a software basestation for an ibook running OS 9.1?
It seems like i... (9 Replies)
Discussion started by: Icarus
9 Replies
2. UNIX for Advanced & Expert Users
I am in the process of reading up on and
learning about linux,and as i read, i am
seeing that it was built off of the unix
system platform,and i also believe that it
is used in the mac computer field,i would
like to know if this is true, and if i should
learn about the macintosh computer... (2 Replies)
Discussion started by: Bill1263
2 Replies
3. UNIX for Dummies Questions & Answers
Hi folks!
I am not a power user, and have been able to enable Postfix to run on my Macintosh. It was a little bit difficult for me. But I payed good attention, while following an Internet Tutorial.
Postfix version 2.1.5
I can send out emails, from local accounts or even from other... (0 Replies)
Discussion started by: fundidor
0 Replies
4. UNIX for Dummies Questions & Answers
Hello Unix gods!
I'm probably a pretty good programmer (on the windows/web/asp/iis side of things) with a good background in IT, but am looking for a new and fresh challenge, hence, I purchased a Sun Ultra5 system with Solaris 7 installed!! I'm quite good when it comes to "IBM compatibles" and... (2 Replies)
Discussion started by: NEWX
2 Replies
5. UNIX for Dummies Questions & Answers
What are people using for Centralized Unix Administration? I'm not just talking user administration, I'm also talking system administration. I prefer a customized SSH enivonment that allows me to connect to server after server quickly to perform multiple tasks at once. I know there are products... (0 Replies)
Discussion started by: x96riley3
0 Replies
6. Shell Programming and Scripting
Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.How to do it?Please reply.thanks!
Thanks,
Mary. (2 Replies)
Discussion started by: MARY76
2 Replies
7. UNIX for Advanced & Expert Users
Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.
Thanks,
Mary. (3 Replies)
Discussion started by: MARY76
3 Replies
8. UNIX for Dummies Questions & Answers
hello,
i am new to this forum. i own a macbook pro running mac os x 10.5.2 leopard. just wondering, if these forums will help me? i work a lot in an application called terminal, it is apples command line. i like programming and have questions, like there was a post about text scrolling, the... (2 Replies)
Discussion started by: jamesapp
2 Replies
9. UNIX for Dummies Questions & Answers
Hello all
I searched the net but didn't found any application that wrap ssh connection with GUI interface so that non techie
people can connect to unix/linux accounts and work with files , so it will looks like there familiar Microsoft windows directory structure .
Please don't answer with ..... (6 Replies)
Discussion started by: umen
6 Replies
LEARN ABOUT DEBIAN
nwbpset
NWBPSET(1) nwbpset NWBPSET(1)
NAME
nwbpset - Create a bindery property or set its value
SYNOPSIS
nwbpset [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ]
DESCRIPTION
nwbpset Reads a property specification from the standard input and creates and sets the corresponding property. The format is determined by
the output of 'nwbpvalues -c'. nwbpset will hopefully become an important part of the bindery management suite of ncpfs, together with
'nwbpvalues -c'. See util/nwbpsecurity for an example.
As another example, look at the following command line:
nwbpvalues -t 1 -o supervisor -p user_defaults -c |
sed '2s/.*/ME/'|
sed '3s/.*/LOGIN_CONTROL/'|
nwbpset
With this command, the property user_defaults of the user object 'supervisor' is copied into the property login_control of the user object
'me'.
nwbpvalues -t 1 -o me -p login_control -c |
sed '9s/.*/ff/'|
nwbpset
This command disables the user object me.
Feel free to contribute other examples!
nwbpset looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of $HOME/.nwclient MUST be 600 for security reasons.
OPTIONS
-h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U user
user is the user name to use for login.
-P password
password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwbpset
prompts for a password.
-n
-n should be given if no password is required for the login.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
AUTHORS
nwbpset was written by Volker Lendecke. See the Changes file of ncpfs for other contributors.
nwbpset 8/7/1996 NWBPSET(1)