Sponsored Content
Top Forums Shell Programming and Scripting Grep words with spaces and save the output Post 302768968 by knijjar on Monday 11th of February 2013 12:11:06 AM
Old 02-11-2013
this still saves the team names with spaces.
I want to save the file without the space.

for example when I grep the schedule for "Team Two" from the schedule file it should have the content of Team Two schedule in the file named Team_Two
 

10 More Discussions You Might Find Interesting

1. Programming

How do I print(save) words to postscript?

It should be pretty simple but I'm just new to IDL and am workling through the command line and scripts(program.pro). If I want to save words to the bottom of a .ps file that I am putting a few plots in what should written in my code. set_plot works for plots but apparently not words. Print... (0 Replies)
Discussion started by: luked
0 Replies

2. Shell Programming and Scripting

Retaining spaces between words

Retaining Spaces within a word -------------------------------------------------------------------------------- Hi Experts, I have a 2 GB flat file which have unicode field, some of them are blanks and its size is 4000 character. In the existing system SED command removes the spaces.... (7 Replies)
Discussion started by: RcR
7 Replies

3. Programming

Counting characters, words, spaces, punctuations, etc.

I am very new to C programming. How could I write a C program that could count the characters, words, spaces, and punctuations in a text file? Any help will be really appreciated. I am doing this as part of my C learning exercise. Thanks, Ajay (4 Replies)
Discussion started by: ajay41aj
4 Replies

4. Shell Programming and Scripting

Save cURL verbose output to file or do it like browser "save as.."

hi there ! i have exactly the same problem like this guy here https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html i am not able to save the curl verbose output.. the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies

5. Shell Programming and Scripting

how can save output?

I make shell script by use "if" statement, what should add it to shell script save which I enter it in output file txt? ---------- Post updated at 08:27 AM ---------- Previous update was at 05:59 AM ---------- I mean like this echo "enter your name" read name # now i when start... (1 Reply)
Discussion started by: Oman_Member
1 Replies

6. Shell Programming and Scripting

Insert varying length spaces between words

Hey all, Fist post, so be kind... I have written an expect script which logs into a terminal and gathers several screens of information. Unfortunately the log file gives me all the special escape and control characters from the terminal. I am hoping to use a combination of shell scripting, sed,... (1 Reply)
Discussion started by: mpacer
1 Replies

7. Shell Programming and Scripting

grep words from output file

Hi, By using shell scripit i have save output in one file. I want to grep two words named CLUSTER and CLUSQMGR from that output file. How to grep that. output file would be having below words TYPE(QCLUSTER) ALTDATE(2010-05-17) CLUSTER(QS.CL.MFT1) ... (5 Replies)
Discussion started by: darling
5 Replies

8. Shell Programming and Scripting

Concatenating words without spaces.

Hi All, I have written a C program to solve this problem but I am eager to know whether the same output can be obtained using sed or awk? This is the input: star ferry computer symbol prime time This is the output: starferry ferrycomputer computersymbol symbolprime primetime (7 Replies)
Discussion started by: shoaibjameel123
7 Replies

9. Shell Programming and Scripting

Remove spaces from between words that are in a field

Hi all, Is there a sed/awk cmd that will remove blank space from between words in a particular field, replacing with a single space? Field containing 'E's in the example below: Example input file: AAAAA AA|BBBB|CCCCCCC|DDDDDD |EEEE EEEEEE| FFF FFFFF| ... (6 Replies)
Discussion started by: dendright
6 Replies

10. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below: Core Utilization CoreId %Usr %Sys %Total ------ ----- ----- ------ 5 4.91 0.01 4.92 6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
CALENDARSERVER_MANAGE_PRINCIPALS(8)			    BSD System Manager's Manual 		       CALENDARSERVER_MANAGE_PRINCIPALS(8)

NAME
calendarserver_manage_principals -- Darwin Calendar Server principal management utility SYNOPSIS
calendarserver_manage_principals [--config file] [--verbose] [--read-property property] [--list-principal-types] [--list-principals type] [--search search-string] [--list-read-proxies] [--list-write-proxies] [--list-proxies] [--add-read-proxy principal] [--add-write-proxy principal] [--remove-proxy principal] [--set-auto-schedule true|false] [--get-auto-schedule] [--add locations|resources full-name [record-name] [GUID]] [--remove] principal [principal ...] DESCRIPTION
calendarserver_manage_principals is a tool for accessing and manipulating information regarding principals on a Darwin Calendar Server. Principals represent any form of actor that can access the server, such as users, groups, locations and resources. calendarserver_manage_principals should be run as a user with the same priviledges as the Calendar Server itself, as it needs to read and write data that belongs to the server. calendarserver_manage_principals takes a list of principals as arguments and then performs the requested actions on each of the given principals. A principal may be specified as the principal's GUID. Alternatively, it may be specified in the form recordType:shortName, where recordType is a directory record type (eg. users, groups, locations, resources) and shortName is the principal's short name. Actions to perform are specified via the options below. Multiple actions may be given, and will be performed in the order given on each principal specified. OPTIONS
-h, --help Displays usage information -v, --verbose Displays debugging information -f, --config FILE Use the Calendar Server configuration specified in the given file. Defaults to /etc/caldavd/caldavd.plist. ACTIONS
--read-property property Read the given WebDAV property on the principal resource. property must be a fully qualified XML element name in the form {namespace}name, for example: {DAV:}displayname. --list-principal-types List all of the known principals types. --list-principals type List all of the principals of the given type. --search search-string Search for principals whose name or email address contains the search string. --list-read-proxies List the read proxies. --list-write-proxies List the write proxies. --list-proxies List all proxies. --add-read-proxy principal Add the given principal as a read proxy. --add-write-proxy principal Add the given principal as a write proxy. --remove-proxy principal Remove the given principal as a proxy. --set-auto-schedule true|false Enable or disable automatic scheduling. --get-auto-schedule Get the automatic scheduling state. --add locations|resources full-name [record-name] [GUID] Add a new location or resource. Record name and GUID are optional. If GUID is not specified, one will be generated. If record name is not specified, the record name will be set to the GUID. EXAMPLES
Add Alice and Bob as read proxies for Joe and display the list of Joe's proxies: calendarserver_manage_principals --add-read-proxy users:alice --add-read-proxy users:bob --list-proxies users:joe Add a group of room admins as write proxy for a couple of rooms: calendarserver_manage_principals --add-write-proxy groups:room-admins locations:bigroom locations:littleroom Turn on auto-scheduling for a resource, and confirm the setting: calendarserver_manage_principals --set-auto-schedule true --get-auto-schedule resources:projector Search for all principals named Joe: calendarserver_manage_principals --search joe Add a location: calendarserver_manage_principals --add locations 'Example Office' office1 Add a resource: calendarserver_manage_principals --add resources 'Example Projector' proj1 List all resource: calendarserver_manage_principals --list-principals resources Remove a resource: calendarserver_manage_principals --remove resources:proj1 FILES
/etc/caldavd/caldavd.plist The Calendar Server configuration file. SEE ALSO
caldavd(8) BSD
June 17, 2009 BSD
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy