10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
I have the following details in a txt file (please note the spaces and tabs)
C1 C2 C3
------------------ --------------- -------------
abc, xyz 2 8
pqr 2 ... (9 Replies)
Discussion started by: H squared
9 Replies
2. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to format the output of the command "df -h":
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-lv01
271G 13G 245G 6% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda1 97M 50M 43M 55% /boot
/dev/mapper/d1vg-lv01
124G 105G 13G 90% /d0
I used awk:
df -h |... (6 Replies)
Discussion started by: seafan
6 Replies
4. Shell Programming and Scripting
Below is a sample out of ls -l which I would like to rearrange or modify by field numbers for example I successfully managed to disect using simple paragraph however for ls -l I can't divide the rows or fields by field number.
Successful modification by fields using SED sample:
$ sed -e... (1 Reply)
Discussion started by: wolf@=NK
1 Replies
5. UNIX for Dummies Questions & Answers
Hello Learned People,
Good evening. I have absolutely no idea as how to do this & I admit that I do not know anything in unix. I must learn this one of these days.
Im a help desk incharge today & someone gave me this file to be formatted & I have a file like this.
vi NewFile.txt
232... (8 Replies)
Discussion started by: RTAN
8 Replies
6. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
7. UNIX for Advanced & Expert Users
Hi-
Objective of the task is to print the lines which doesnt have a END statement corresponding to a START statement.
Let me know if anyone has a better way of doing is.
My Thoughts
Have 2 files one having START lines and another having END lines (sorted). And then diff the files to get... (8 Replies)
Discussion started by: lorcan
8 Replies
8. Shell Programming and Scripting
Dear all,
I have written a program which access database and displays the values returned by the query . There are 10 columns to be displayed in one row. But am ending with 5 lines displayed on 1st line and the next 5 in the 2nd line.
Ex :
21608 10-20-2007 148 Al's Appliance... (7 Replies)
Discussion started by: uday542
7 Replies
9. Shell Programming and Scripting
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
10. UNIX for Dummies Questions & Answers
below is the output is ls -l
-rw-r--r-- 1 tonyt staff 3212 Apr 17 1999 file1
-rw-r--r-- 1 tonyt staff 4541 Mar 3 21:08 file2
why the date format is not the same? (6 Replies)
Discussion started by: tonyt
6 Replies