Sponsored Content
Top Forums Shell Programming and Scripting Editing long records with characters that need to be escaped. Post 302349980 by Macs_Linux on Wednesday 2nd of September 2009 12:16:19 PM
Old 09-02-2009
No ideas?
Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to deal with long records (> 8k)??

Still working on manipulating SQL statements. Some are very long (10-20k). I'm using a shell script to read the SQL statements that are stored in a DB2 table and writing the records out to a file on Unix. The records appear to be getting truncated at 8k. Is there any way for me to avoid the... (1 Reply)
Discussion started by: bradtri2
1 Replies

2. Shell Programming and Scripting

problems with sed and bash. Escaped characters ?

Hi, I'm writing a long script for bash (on RHEL 5.0) to execute many commands. So, my idea is to create a function to deal with error checking and logging (see ceckoutput() below). This works with all commands except for sed. I think it may be a problems with escaped characters. So I did the... (4 Replies)
Discussion started by: macL
4 Replies

3. Shell Programming and Scripting

count characters in specific records

I have a text file which represents a http flow like this: HTTP/1.1 200 OK Date: Fri, 23 Jan 2009 17:16:24 GMT Server: Apache Last-Modified: Fri, 23 Jan 2009 17:08:03 GMT Accept-Ranges: bytes Cache-Control: max-age=540 Expires: Fri, 23 Jan 2009 17:21:31 GMT Vary: Accept-Encoding ... (1 Reply)
Discussion started by: littleboyblu
1 Replies

4. Shell Programming and Scripting

Breaking long lines into (characters, newline, space) groups

Hello, I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
Discussion started by: rowie718
14 Replies

5. Shell Programming and Scripting

Trim leading zeros to make field 6 characters long

Hi all- I've got a file that will have multiple columns. In one column there will be a string that is 10 digits in length, but I need to trim the first four zeros to make it 6 characters? example: 0000001234 0000123456 0000234566 0000000321 output: 001234 123456 234566 000321 (5 Replies)
Discussion started by: Cailet
5 Replies

6. Programming

How i can read a long integer from standar input and a string with as many characters as specified..

how i can read a long integer from standar input and a string with as many characters as specified in the number? i thing that i must use the read command ofcourse.... (6 Replies)
Discussion started by: aintour
6 Replies

7. Solaris

Reason why some commands need escaped-characters and other not

Hi, this is my first post and hope to make some contribution soon. I'm still learning the basics of UNIX and Linux and BASH. Thus my need to understand the subject at hand. I don't have a problem with technical detail, so hit me :) I have a script where two commands use the contents of a... (2 Replies)
Discussion started by: doublefrangelic
2 Replies

8. Shell Programming and Scripting

Help in Editing Records of a file

Hi Friends , Need help here , I Have a file which has as a number of rows (records) in it . 00012919 7836049 S 00012920 7836049 S 00012921 3828157 Y 00012922 3828157 Y 00012923 3828157 S T005290070331000012923 I Have another file which has few more... (3 Replies)
Discussion started by: robert89
3 Replies

9. Windows & DOS: Issues & Discussions

How to copy a file with long records ,i.e spanning to 2 or 3 lines from UNIX to excel?

Hi Experts, I have a Unix csv file which has long records ie the record length is more than 80 so it goes to the next line.So when its in unix though it spans to two or three lines it still counts it as one record. But what is happening is for the records that are long when i copy it into excel i... (0 Replies)
Discussion started by: 100bees
0 Replies

10. UNIX for Dummies Questions & Answers

Editing long text file

Good morning all, I have a machine running IRIX and I need to edit a text file on the terminal that is literally thousands of lines. Does anyone know the most efficient way to edit portions of files like these? Obviously simply using the vi command isn't going to work since I get a too many lines... (1 Reply)
Discussion started by: James C
1 Replies
CAPISTRANO(1)                                                 General Commands Manual                                                CAPISTRANO(1)

NAME
cap -- cap is an utlity to invoke capistrano tasks. SYNOPSIS
cap <command> [options] DESCRIPTION
Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. It uses a simple DSL (bor- rowed in part from Rake, http://rake.rubyforge.org/) that allows you to define _tasks_, which may be applied to machines in certain roles. It also supports tunneling connections via some gateway machine to allow operations to be performed behind VPN's and firewalls. Capistrano was originally designed to simplify and automate deployment of web applications to distributed environments, and originally came bundled with a set of tasks designed for deploying Rails applications. The deployment tasks are now (as of Capistrano 2.0) opt-in and require clients to explicitly put "load 'deploy'" in their recipes. Capistrano is a self-documenting program by giving you an extensive help listing for each command. If you think that this manual page is outdated, simply running cap -h ASSUMPTIONS
Capistrano is "opinionated software", which means it has very firm ideas about how things ought to be done, and tries to force those ideas on you. Some of the assumptions behind these opinions are: * You are using SSH to access the remote servers. * You either have the same password to all target machines, or you have public keys in place to allow passwordless access to them. Do not expect these assumptions to change. OPTIONS
Capistrano is extensible configurable, and it has the following configuration options: -e --explain TAKS Displays help (if available) for the task. -F --default-config Always use default config, even with -f. -f --file FILE A recipe file to load. May be given more than once. -H --long-help Explain these options. -h --help Display this help message. -p --password Immediately prompt for the password. -q --quiet Make the output as quiet as possible. -S --set-before NAME=VALUE Set a variable before the recipes are loaded. -s --set NAME=VALUE Set a variable after the recipes are loaded. -T --taks List all tasks in the loaded recipe files. -V --version Display the Capistrano version, and exit. -v --verbose Be more verbose. May be given more than once. -X --skip-system-config Don't load the system config file (capistrano.conf) -x --skip-user-config Don't load the user config file (.caprc) SEE ALSO
capify (1). AUTHOR
This manual page was written by Leandro Nunes dos Santos leandronunes@colivre.coop.br for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. CAPISTRANO(1)
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy