Sponsored Content
Top Forums UNIX for Dummies Questions & Answers 'less' command response is garbled Post 302205632 by amitpansuria on Monday 16th of June 2008 01:27:48 AM
Old 06-16-2008
Quote:
Originally Posted by era
Without an example of how it's garbled, it's very hard to offer any advice. This is not the normal operation of less
helo below is my response of less command.
It gives me garbled as shown below.


$ ls -laF|less
<D7><DC><D3><C3><C1><BF> 160
drwxr-xr-x 40 admin pds_system 4096 6<D4><C2> 15 03:12 ./
drwxr-xr-x 9 root root 4096 6<D4><C2> 15 02:12 ../
drwxrwsr-x 2 admin pds_agent 4096 6<D4><C2> 17 19:11 account/
drwxrwxr-x 2 admin pds_system 4096 2007-11-25 archive/
drwxr-xr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 bin/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 callsel/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 class/
drwxrwxr-x 6 admin pds_system 4096 6<D4><C2> 15 03:12 config/
drwxr-xr-x 2 admin pds_system 4096 2007-11-25 customs/
drwxrwsr-x 2 admin pds_system 4096 2007-11-25 dnc/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 etc/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 help/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 histrpt/
drwxr-xr-x 2 admin pds_system 4096 2007-11-25 imon/
drwxrwxrwt 2 admin pds_system 4096 2007-11-25 ipc/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:11 ivr/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 job/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:11 ktbs/
drwxr-xr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 language/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 listdist/
drwxrwxrwt 7 admin pds_system 4096 6<D4><C2> 15 02:12 lists/
drwxrwxr-x 5 admin pds_system 4096 6<D4><C2> 15 02:13 man/
drwxr-xr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 menus/
drwxr-xr-x 5 admin pds_system 4096 6<D4><C2> 15 02:12 newconfig/
drwxrwxr-x 6 admin pds_system 4096 6<D4><C2> 15 02:12 openssl/
drwxr-xr-x 2 root sys 4096 2007-11-25 patch/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 reportgen/
drwxrwsrwt 2 admin pds_system 4096 2007-11-25 reports/
drwxrwxr-x 4 admin pds_system 4096 6<D4><C2> 15 02:12 sample/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 scripts/
drwxr-xr-x 2 admin pds_system 4096 6<D4><C2> 15 03:12 scrnbld/
drwxr-xr-x 15 admin pds_system 4096 6<D4><C2> 15 03:12 shell/
drwxr-xr-x 2 admin pds_system 4096 2007-11-25 sp_bin/
drwxrwxr-x 5 admin pds_system 4096 6<D4><C2> 15 02:12 staging/
drwxr-xr-x 5 root root 4096 6<D4><C2> 15 03:12 svcpk1/
drwxr-xr-x 4 admin pds_system 4096 6<D4><C2> 15 02:12 switch/
drwxrwxr-x 2 admin pds_system 4096 6<D4><C2> 15 02:12 tape/
drwxr-xr-x 16 admin pds_system 4096 6<D4><C2> 15 02:12 tools/
drwxr-xr-x 2 admin pds_system 4096 2007-11-25 ucb/
dr-xr-xr-x 4 admin pds_system 4096 6<D4><C2> 15 02:12 xfer/


Regards,
Amit
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed: command garbled

Im getting this error message when trying to substitute filepaths in a sed search and replace string #!/usr/bin/ksh ORACLE_SID=PH3 ORACLE_ADMIN=/data01/app/oracle/admin/$ORACLE_SID DATAFILE_DIR=/asterisk/oradata/$ORACLE_SID sed -e s/DBNAME/$ORACLE_SID/g < initPH2.ora | sed -e... (1 Reply)
Discussion started by: blakmk
1 Replies

2. Shell Programming and Scripting

sed: command garbled error.....

Dear friends, please give me the solution to the following query. If a file contains multiple tags of same name, then how to get the required string between the tags, in which the string begins with "W/X" i.e., file1.txt contains following text(please note that all the following tags are in... (1 Reply)
Discussion started by: swamymns
1 Replies

3. Shell Programming and Scripting

Sed: command garbled :s/

Hi, I really need some help, I am using a very basic script to proess a text file. This script has been used many times but all of a sudden all on it's own it's stopped working. The line in the script is: sed 's/ //g' $ORGFILE > $NEWFILE and the error is Sed: command garbled :s/ All... (3 Replies)
Discussion started by: heidi.lightfoot
3 Replies

4. Shell Programming and Scripting

sed: command garbled - when executed with $variables

I have got a file job_tree.lst , which contains 1 line as below $ cat job_tree.lst ABC_D_EQ_XXXXX_YYYY_PRD_UX 05/08/2009 05:47 05/08/2009 05:50 IN 13412850/0 I want to get a child job string 3 characters offset from the parent job string (i.e. ABC_D_EQ_XXXXX_YYYY_PRD_UX 05/08/2009... (4 Replies)
Discussion started by: Armaan_S
4 Replies

5. Shell Programming and Scripting

sed: command garbled

Hi, I have a file1 as : A=/home/user B=/home/user1 C=/home/user2 D=/home/aacsms E=/home/user1/temp F=/home/user1/area1 and my script as: a=`cat /home/aacsms7/file1 | grep -i e` b=`user2` sed 's/'$a'/"E=/home/'$b'/temp"/g' < file1 > file2 sed: command garbled:... (3 Replies)
Discussion started by: yesmani
3 Replies

6. Shell Programming and Scripting

sed command garbled error

sed: command garbled: s/ri="*"/ri=" what i did is you can see below sed "s/ri=\"*\"/ri=\"$newri\"/" $2 > output how to solve this (2 Replies)
Discussion started by: pasricha.kunal
2 Replies

7. Shell Programming and Scripting

Sed command garbled question

for j in $(cat ${list_B}) do to_replace_2=$(grep $j ${useralias}_2) sed "s/^${j}/${to_replace_2}/p" ${entries} > ${entries}_2 mv ${entries}_2 ${entries} done Hi, I've the above sed command running in a script. Its basically looping through a file and replacing its beginning of line... (8 Replies)
Discussion started by: Jazmania
8 Replies

8. Shell Programming and Scripting

sed: command garbled error

Hi all, Suppose that I want to update the db.password entry in the below properties file, db.username=admin db.password=qhKkBno2U5GEq5k/dnmGPA== //I want this line to be replaced by: "db.password=abc/123/" db.host=server db.port=22 db.sid=database However when... (2 Replies)
Discussion started by: isaacniu
2 Replies

9. Shell Programming and Scripting

sed help - Command garbled

Hi, First post for a noob so please go easy with me :) I have a XML block that is originally like this: <SETNAME>somecrap/THIS</SETNAME> and I would like it be replaced with, in the original file: <SETNAME>THIS</SETNAME> I tried to use: sed... (4 Replies)
Discussion started by: zhuanyi
4 Replies

10. Shell Programming and Scripting

Command garbled when using sed

Hi everyone, Can anyone help me in question below? I want to cron a job to add partition every month but get the error sed: command garbled: s/YYYYMM/ . > echo $YYYYMON_NEW 201304 > echo $YYYYMON_OLD 201208 > echo $YYYY_MM_NEW 2013-05 This is my base script: ALTER TABLE STS.ADMIN ADD... (1 Reply)
Discussion started by: fenocean
1 Replies
asadmin-list-admin-objects(1AS) 				   User Commands				   asadmin-list-admin-objects(1AS)

NAME
asadmin-list-admin-objects, list-admin-objects - gets all the administered objects SYNOPSIS
list-admin-objects --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename] [--terse=false] [--echo=false] [--interactive=true] Lists all the administered objects. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. --interactive if set to true (default), only the required password options are prompted. Example 1: Using list-admin-objects asadmin> list-admin-objects --user admin --password admin123 Command list-admin-objects executed successfully EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-create-admin-object(1AS), asadmin-delete-admin-object(1AS) J2EE 1.4 SDK March 2004 asadmin-list-admin-objects(1AS)
All times are GMT -4. The time now is 09:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy