Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trouble with UNIX tr (translate) function Post 302162936 by bobbygsk on Wednesday 30th of January 2008 06:23:18 PM
Old 01-30-2008
Try the following command

Quote:
echo "i te m" | tr -s " " "?"
 

9 More Discussions You Might Find Interesting

1. OS X (Apple)

Cannot translate Unix executable files

Help!! I loaded OS X Panther on my Mac G4 and found that many files previously saved as txt files were inadventently converted to Unix executable files. When I try to read these in Word, the Word filters cannot recognize or translate the file properly. Does anyone know how to translate these files?... (1 Reply)
Discussion started by: Steven Greenber
1 Replies

2. Shell Programming and Scripting

Trouble using substr function with Bourne shell script

Hi, I'm a newbie to UNIX scripting and I'm having some trouble compiling my script. I'm using the Bourne Shell and cannot seem to use the substr function correctly. I'm trying to extract the last two digits of a year that's stored in a variable based off of a condition. I've searched the... (4 Replies)
Discussion started by: E2004
4 Replies

3. Shell Programming and Scripting

how to achicve translate in unix

hi, i have file with 4 columns, the first column contains 10 numbers. i want to replace t the numbers (u can say i want to use cryptography). i want to replace 1 with 4, 2 with 5, 3 with 9..... how can i achieve this in unix. :confused: (1 Reply)
Discussion started by: javeed7
1 Replies

4. UNIX for Dummies Questions & Answers

Having trouble finding good unix study material

I am trying to read about a UNIX distribution list but I cannot seem to find out what it is or where I can find a website to read more on it any help would be greatly appreciated (2 Replies)
Discussion started by: starshot
2 Replies

5. Homework & Coursework Questions

unix script trouble

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi I am new to unix and need some help, the main reason I am here is because i need basic unix knowledge The... (2 Replies)
Discussion started by: krolike
2 Replies

6. Shell Programming and Scripting

!!VERY URGENT!! Trouble in getting user input, while using under CASE statement in UNIX

i want to get user input like this please tell which option to chose 1. mango 2. tango 3. rango if user chooses mango then it should execute a set of statements and again ask like this what do you want to do 1.add 2.subtract 3.exit when i choose exit it should goto my previous... (1 Reply)
Discussion started by: s.deepak
1 Replies

7. Shell Programming and Scripting

Trouble in getting user input while using CASE statement in UNIX

i want to get user input like this please tell which option to chose 1. mango 2. tango 3. rango if user chooses mango then it should execute a set of statements and again ask like this what do you want to do 1.add 2.subtract 3.exit when i choose exit it should goto my previous menu... (4 Replies)
Discussion started by: s.deepak
4 Replies

8. Shell Programming and Scripting

Can someone please help me translate this UNIX script to English?

Hi guys, I'm trying to create a DataStage job and I'm basing it off an existing similar project. The 'Input' value of the job is: (where "/DATA/CSV_FILES" is where all the files were located) My understanding is that for each CSV, it added the 'filename' as Column A. And then it... (5 Replies)
Discussion started by: thedunnyman
5 Replies

9. Shell Programming and Scripting

Trouble Assigning Variable with Function

OSX 10.9 Good morning/afternoon/evening. I'm hoping to get some insight on assigning a variable when calling a function. The code below looks at my array and checks if the path exists. My actual code will have multiple arrays and I would like to define a specific array when I call the... (6 Replies)
Discussion started by: sudo
6 Replies
Exacct::Object::Item(3PERL)				      Perl Library Functions				       Exacct::Object::Item(3PERL)

NAME
Exacct::Object::Item - exacct item manipulation SYNOPSIS
use Sun::Solaris::Exacct::Object; my $ea_item = Sun::Solaris::Exacct::Object::Item->new( &EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$); DESCRIPTION
This module is used for manipulating libexacct(3LIB) data Items. A libexacct Item is represented as an opaque reference blessed into the Sun::Solaris::Exacct::Object::Item class, which is a subclass of the Sun::Solaris::Exacct::Object class. The underlying libexacct data types are mapped onto Perl types as follows: libexacct type Perl internal type EXT_UINT8 IV (integer) EXT_UINT16 IV (integer) EXT_UINT32 IV (integer) EXT_UINT64 IV (integer) EXT_DOUBLE NV (double) EXT_STRING PV (string) EXT_RAW PV (string) EXT_EXACCT_OBJECT Sun::Solaris::Exacct::Object subclass Constants None. Functions None. Class methods Class methods include those inherited from the Sun::Solaris::Exacct::Object base class, plus the following: new($catalog, $value) This method creates and returns a new Sun::Solaris::Exacct::Object::Item. The catalog tag can be either an integer or a Sun::Solaris::Exacct::Catalog. This catalog tag controls the conversion of the Perl value to the corresponding Perl exacct data type as described in the table above. If the catalog tag has a type field of EXT_EXACCT_OBJECT, the value must be a reference to either an Item or a Group object and the passed object is recursively copied and stored inside the new Item. Because the returned Item is constant, it is impossible, for example, to create an Item representing CPU seconds and subsequently modify its value or change its catalog value. This behavior is intended to prevent mismatches between the catalog tag and the data value. Object methods Object methods are those inherited from the Sun::Solaris::Exacct::Object. Exports None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpl5u | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
Exacct(3PERL), Exacct::Catalog(3PERL), Exacct::File(3PERL), Exacct::Object(3PERL), Exacct::Object::Group(3PERL), libexacct(3LIB), attributes(5) SunOS 5.10 1 Dec 2002 Exacct::Object::Item(3PERL)
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy