Sponsored Content
Top Forums Shell Programming and Scripting Using awk to search variable length records Post 302227692 by synergy_texas on Thursday 21st of August 2008 05:34:53 PM
Old 08-21-2008
Here is what I have,

rev sftplist.txt | cut -d ' ' -f2- | rev | tr ' ' '\n' > users.txt

This is what I get.

tr: 0653-712 The combination of options and String parameters is not legal.
Usage: tr [ -[c|C] | -[c|C]ds | -[c|C]s | -ds | -s ] [-A] String1 String2
tr { -[c|C]d | -[c|C]s | -d | -s } [-A] String1

Last edited by synergy_texas; 08-21-2008 at 06:51 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a fixed length output from a variable length input

Is there a command that sets a variable length? I have a input of a variable length field but my output for that field needs to be set to 32 char. Is there such a command? I am on a sun box running ksh Thanks (2 Replies)
Discussion started by: r1500
2 Replies

2. Shell Programming and Scripting

use awk to read variable length csv

Any help to read the contents of a variable length csv ....??(using awk) The csv mite look like this : anjali,ram,rahul,mohini,sam,.... and so on ... I need to pick up each name.. Thanks in advance SD (3 Replies)
Discussion started by: shweta_d
3 Replies

3. Shell Programming and Scripting

Using a variable to select records with awk

As part of a bigger task, I had to read thru a file and separate records into various batches based on a field. Specifically, separate records based on the value in the batch field as defined below. The batch field left-justified numbers. The datafile is here > cat infile 12345 1 John Smith ... (5 Replies)
Discussion started by: joeyg
5 Replies

4. Shell Programming and Scripting

awk - replace number of string length from search and replace for a serialized array

Hello, I really would appreciate some help with a bash script for some string manipulation on an SQL dump: I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump. This is quite easy with sed: sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies

5. Shell Programming and Scripting

awk to extract incorrect fixed length records

I have a number of unix text files containing fixed-length records (normal unix linefeed terminator) where I need to find odd records which are an incorrect length. The data is not validated and records can contain odd backslash characters and control characters which makes them awkward to process... (2 Replies)
Discussion started by: methyl
2 Replies

6. Shell Programming and Scripting

Make variable length record a fixed length

Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types: (H)eader Records (D)etail Records (T)railer Records The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies

7. Shell Programming and Scripting

changing a variable length text to a fixed length

Hi, Can anyone help with a effective solution ? I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces. The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies

8. UNIX for Dummies Questions & Answers

Help with awk, where line length and field position are variable

I have several questions about using awk. I'm hoping someone could lend me a hand. (I'm also hoping that my questions make sense.) I have a file that contains pipe separated data. Each line has similar data but the number of fields and the field position on each line is variable. ... (3 Replies)
Discussion started by: Cheese64
3 Replies

9. Shell Programming and Scripting

awk variable search and line count between variable-search pattern

Input: |Running the Rsync|Sun Oct 16 22:48:01 BST 2016 |End of the Rsync|Sun Oct 16 22:49:54 BST 2016 |Running the Rsync|Sun Oct 16 22:54:01 BST 2016 |End of the Rsync|Sun Oct 16 22:55:45 BST 2016 |Running the Rsync|Sun Oct 16 23:00:02 BST 2016 |End of the Rsync|Sun Oct 16 23:01:44 BST 2016... (4 Replies)
Discussion started by: busyboy
4 Replies

10. Shell Programming and Scripting

Convert variable length record to fixed length

Hi Team, I have an issue to split the file which is having special chracter(German Char) using awk command. I have a different length records in a file. I am separating the files based on the length using awk command. The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
svnadmin(1)						   Subversion Command Line Tool 					       svnadmin(1)

NAME
svnadmin - Subversion repository administration tool SYNOPSIS
svnadmin command repos-path [args] OVERVIEW
svnadmin is a tool to perform administrative operations on a Subversion repository. A Subversion repository contains the revision history of a directory tree. The revision history includes file changes and log messages as well as move and copy operations that were applied at some time in the past to the tree. svnadmin operations are typically carried out by an administrator. The svn(1) tool handles operations for normal users of the source controlled resource. COMMANDS
create repos-path Create a new, empty repository at repos-path. For example, a repository can be created with the command: $ svnadmin create /var/svn Importing a source tree into the repository created above is possible with the svn(1) command : $ svn import file:///var/svn . new_proj createtxn repos-path -rbase_rev Create a new transaction based on base_rev. dump repos-path [ -rlower-rev[:upper-rev] ] [--incremental] Dump the contents of filesystem to stdout in a 'dumpfile' portable format, sending feedback to stderr. Dump revisions lower-rev through upper-rev. If no revisions are given, all revision trees are dumped. If just lower-rev is given, that one revision tree is dumped. A 'dumpfile' is used to convert between incompatible repository formats. If --incremental is passed, then the first revi- sion dumped will be a diff against the previous revision, instead of the usual fulltext. load repos-path Read a 'dumpfile'-formatted stream from stdin, committing new revisions into the repository's filesystem. Send progress feedback to stdout. lscr repos-path path [ --copies ] Print, one-per-line and youngest-to-eldest, the revisions in which path was modified. Use the --copies flag to allow this operation to cross copy history while searching for revisions. (For directories, this is, for now, almost guaranteed to be uninteresting. Also, path must exist in the HEAD of the repository.) lstxns repos_path Print all txn names. recover repos_path Run the Berkeley DB recovery procedure on a repository. WARNING: only run this when you are SURE you're the only process accessing the repository. Requires exclusive access. rmtxns repos-path txn-name [ ... ] Delete the transaction(s) named txn-name. setlog repos-path -rrev file Set the log-message on revision rev to the contents of file. Be careful with this option. Log messages are stored as revision properties. The history of revision properties is not saved. This command will permanently overwrite the previous log message. SEE ALSO
svn(1) svn r3206 22 Sept 2002 svnadmin(1)
All times are GMT -4. The time now is 04:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy