I may have accidentally redefined one of the outputs...


 
Thread Tools Search this Thread
Operating Systems Solaris I may have accidentally redefined one of the outputs...
# 1  
Old 03-21-2005
I may have accidentally redefined one of the outputs...

I get unexpected results when doing ls -al | more and ls -al | grep.

When I do not pipe the output, it comes to the screen just fine, and there is output!

When I pipe to another command, I either get nothing, or else I get a strange dump.

Which of the outputs have I accidentally affected?

Thanks!
# 2  
Old 03-21-2005
ls -al | grep
will give no output, because it has no pattern to match on.

ls -al | more should work but it may come out incorrectly on screen is you have your TERM environment variable incorrectly defined.
# 3  
Old 03-22-2005
Found my problem

Hi,

Thank you for your posts.

Of course I did not show the entire command where I sent the output of ls -al to a pipe to grep for something. Sorry if you found my fragment confusing.

In any case, there was an internal application that was misappropriating the output. Once that was corrected, the outputs were fine.

Thanks again,
Joan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Subroutine redefined warnings with require keyword

I've been writing a perl script that uses the require keyword. I need to use require for two files, say file a and file b. Here is a general overview of my code: @files = ("a", "b"); foreach $file (@files){ require $file; ... ... } Whenever I run my script, I get subroutine "blah"... (1 Reply)
Discussion started by: chu816
1 Replies

2. UNIX for Dummies Questions & Answers

accidentally umount -a

Hi all, I accidentally unmounted filesystems using umount -a command. How to recover from this. Please help. Thanks in advance! when i try to use mount -a i got the following output. # mount -a mount: /dev/vg00/lvol05 already mounted or /opt busy mount: /dev/vg00/lvol07 already... (4 Replies)
Discussion started by: lramsb4u
4 Replies

3. AIX

Oracle ASM accidentally messed with my hdisk

I have AIX 5.3 with oracle 10g ( test server). While trying to create RAW disk for Oracle ASM I have accidentally messed with rootvg (hdisk0 & hdisk1) When I do # lspv hdisk0 0516-066 : Physical volume is not a volume group member. Check the physical volume name specified. ... (4 Replies)
Discussion started by: George_Samaan
4 Replies

4. Shell Programming and Scripting

Accidentally removed a script

I accidentally rm a script (typo) and it doesn't even show up in the trash. Is there any way I can recover? (3 Replies)
Discussion started by: stevenswj
3 Replies

5. Shell Programming and Scripting

create outputs from other command outputs

hi friends, The code: i=1 while do filename=`/usr/bin/ls -l| awk '{ print $9}'` echo $filename>>summary.csv #Gives the name of the file stored at column 9 count=`wc -l $filename | awk '{print $1}'` echo $count>>summary.csv #Gives just the count of lines of file "filename" i=`expr... (1 Reply)
Discussion started by: rajsharma
1 Replies

6. Solaris

Accidentally did a unlink inet

I was trying to remove a symbolic link of /etc/hosts to /etc/inet/hosts well i forgot the command and in the /etc directory i did unlink inet and now i can not get into inet and it does not exist in /etc 1) what do i do to fix the inet directory 2) how do i link /etc/hosts to... (1 Reply)
Discussion started by: deaconf19
1 Replies

7. HP-UX

aCC compiler error - Redefined symbols

I got this error while compiling in aCC compiler. Error 173: "/opt/aCC/include_std/limits", line 694 # Redefined symbol 'numeric_limits<int>'; previously defined at . _RWSTD_SPECIALIZE_LIMITS (bool, int, _RWSTD_BOOL) ^^^^^^^^^^^^^^^^^^^^^^^^ Error... (2 Replies)
Discussion started by: onlyforforum
2 Replies

8. UNIX for Dummies Questions & Answers

HELP! Accidentally downloaded .gz file non-binary

Let me start by saying I am at a VERY beginner level in terms of UNIX/FTP/etc. Someone loaded a file onto a server for me and zipped it using gzip. I accidentally downloaded the file without using "binary". I now have a "filename.txt.gz" sitting on my computer that I need to unzip. Is... (2 Replies)
Discussion started by: UDcc123
2 Replies

9. Solaris

changed shell of the root accidentally

Hi All, I have changed the shell of the root accidentally to /sbin/bash :mad: How do I change that? :( To change that I need to go to ok prompt I think, and there I need to mount the root file system in order to make changes to the respective file. Can any one please suggest how do I do... (4 Replies)
Discussion started by: pintu_asim
4 Replies

10. UNIX for Advanced & Expert Users

Accidentally deleting directory/files

Hi, I accidentally deleted a big directory with all its sub-directories and bunch of source code files which I have been developing for about 2 years... What will I do now, how can I retrieve my files, directory hierarchy back ??? If anyone, please HELP ! ! ! ... (4 Replies)
Discussion started by: milhan
4 Replies
Login or Register to Ask a Question