10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am using awk to print 10,11 column but it is not displaying required output.
Please let me know how I can browse through the line and extract the required one
Example: I have below 2 lines in file
seq 49960| Thu Apr 19 10:57:40.726182 2018|Len: 89|GAP for CL/U18 9P-NC (CL90U8)) gap... (10 Replies)
Discussion started by: sdosanjh
10 Replies
2. UNIX for Dummies Questions & Answers
Sorry for the silly question and i could not find anywhere..
I have files in my directory as follows
myzip
myzip_1
myzip_2
myzip_3
myunzip_1
myunzip_2
I want to display one instance of file name
myzip
myunzip
Thanks
Bala (1 Reply)
Discussion started by: baluchen
1 Replies
3. Shell Programming and Scripting
Hi I have 3 files
$ ls -l
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 SANITY_TEST
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 (1)
I need to see this
"SANITY_TEST" "Success 123333" "Success... (6 Replies)
Discussion started by: mnmonu
6 Replies
4. Shell Programming and Scripting
Hi
I want to display "echo command value in loop" in single line. My requirement is to show the input file (test_1.txt) like the output file (test_2.txt) given below.
Input file :test_1.txt
a1|b1|4|5
a1|b1|42|9
a2|b2|32|25
a1|b1|2|5
a3|b3|4|8
a2|b2|14|6
Output file:test_2.txt... (2 Replies)
Discussion started by: sakthifire
2 Replies
5. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
6. SuSE
Sir,
I using the following commands in a file (part of a bigger script):
#!/bin/bash
cd /opt/oracle/bin
ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out
If I run this from the command prompt the result is:
2007-05-16
if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies
7. Shell Programming and Scripting
whats the value stored in $$ (2 Replies)
Discussion started by: suri
2 Replies
8. Windows & DOS: Issues & Discussions
Is there an easy way to view all printers on a local
machine via command line or a script?
I'm looking for the equivalent of clicking on
"START, CONTROL PANEL, PRINTERS AND FAXES"
to view the devices.
I then want to cat it to a file where I would use
it later.
Thanks (3 Replies)
Discussion started by: gseyforth
3 Replies
9. UNIX for Dummies Questions & Answers
With what command can you list only the hidden files of your home directory? (3 Replies)
Discussion started by: shock1
3 Replies
10. UNIX for Dummies Questions & Answers
hey guys im rly new to unix. im attempting to list the 5 largest files in a directory.
so i got this far...
ls -lR | sort -r
and this lists all files by filesize, how can i limit this to only the 5 largest? (4 Replies)
Discussion started by: Aesop
4 Replies