10-20-2010
same here too
Interesting. You didn't mention the bigger picture of what you are trying to do, but maybe you would be better off using grep to see if a string exists in a file, or sed if you need to change that string?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Very strange one, we've got a recently build server (Sol10 via JET flash).
Bascially you can ssh to it fine, but telnet will allow entry of username, but will then feed in a carriage return on the passwd field, this also happens on any auth type command, ie passwd on a user account will also... (4 Replies)
Discussion started by: itsupplies
4 Replies
2. Solaris
Hi All,
I have solaris 10 on X86 and I need to connect this through X-Manager or similar software.
I have googled a lot and tried the following :
root@sol10x86 # ps -ef |grep dtlogin
root 1825 4718 0 13:38:50 pts/1 0:00 grep dtlogin
root@sol10x86 # svcs cde-login
STATE ... (2 Replies)
Discussion started by: pintu_asim
2 Replies
3. Solaris
Hi,
I am having a serious problem with a Solaris 2.6 box. Whenever I try and tar a large directory I get this error:tar: write error: unexpected EOF
My own research shows that I might have to enable tarring large files by this command:
fsadm -o largefiles <mountpoint>
My box does not... (8 Replies)
Discussion started by: mojoman
8 Replies
4. Solaris
i have 30 file systems on my production system and my system is responding too slow and / is 99% full is there any way i can run the du -sh only on root file systems and skip all the SAN file systems as the system is unable to do du -sdh * / as it would try to run du on all the SAN/NAS file... (5 Replies)
Discussion started by: fugitive
5 Replies
5. Solaris
Synopsis:
Solaris 10 SunFire v880 with two networked HP laser printers set up through HPPI. Test page will print through HPPI but can't print to them us the lp command. When using the lp command it just hangs and causes the Samba process to fail.
We have a SunFire v880 running Solaris 10.
$$... (1 Reply)
Discussion started by: KenLynch
1 Replies
6. UNIX for Dummies Questions & Answers
Can anyone explain this (i.e. why the 2nd grep does not find anything)?:
-bash-3.00$ cat tmp.log
sftp> chdir /home/test-dir
sftp> mget thosefiles*.txt
File "/home/test-dir/thosefiles*.txt" not found.
-bash-3.00$ grep "s*.txt" tmp.log
sftp> mget thosefiles*.txt
File... (4 Replies)
Discussion started by: dhebden
4 Replies
7. Solaris
I have 2 disks in my system.I recently added a zpool to the disk, but today I changed my mind and deleted the zpool ,
zpool destroy -f extra
The zpool is now deleted and I want to partition the disk, so I delete the only partition on the disk.
Now when I run format again,
format... (13 Replies)
Discussion started by: cbtshare
13 Replies
8. Solaris
Hi Friends,
I am new in solaris. yesterday i installed solaris in VM. now while installing weblogic setup(.bin) its giving me Invalid argument error.
after some google i have two points in my mind
1) i am using solaris on intel machine. thats why i am facing this issue. If answer is yes... (3 Replies)
Discussion started by: Vishal Baghla
3 Replies
9. Shell Programming and Scripting
Hello All , Need assistance in finding out a solution for X Forwarding issue
IBM applications requires X Forwarding . Server X11 works fine when i try xclock but not this application . On a different server with the same OS it is working . Need inputs .
OS Version : Solaris 11 with updated... (1 Reply)
Discussion started by: ajayram_arya
1 Replies
10. Solaris
Hi,
Our most of servers are on Solaris 11.2 (with no SRU). Recently I upgraded one of them to Solaris 11.4. It has to go in multiple steps, as it can not jump fro 11.2 to 11.4 in one go. After upgrading, I can not login to server with SecureCRT and it through error
key exchange failed: cipher... (1 Reply)
Discussion started by: solaris_1977
1 Replies
GREP(1) General Commands Manual GREP(1)
NAME
grep - search a file for lines containing a given pattern
SYNOPSIS
grep [-elnsv] pattern [file] ...
OPTIONS
-e -e pattern is the same as pattern
-c Print a count of lines matched
-i Ignore case
-l Print file names, no lines
-n Print line numbers
-s Status only, no printed output
-v Select lines that do not match
EXAMPLES
grep mouse file # Find lines in file containing mouse
grep [0-9] file # Print lines containing a digit
DESCRIPTION
Grep searches one or more files (by default, stdin) and selects out all the lines that match the pattern. All the regular expressions
accepted by ed and mined are allowed. In addition, + can be used instead of * to mean 1 or more occurrences, ? can be used to mean 0 or 1
occurrences, and | can be used between two regular expressions to mean either one of them. Parentheses can be used for grouping. If a
match is found, exit status 0 is returned. If no match is found, exit status 1 is returned. If an error is detected, exit status 2 is
returned.
SEE ALSO
cgrep(1), fgrep(1), sed(1), awk(9).
GREP(1)