10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am logged into as root & inside the home directory of another user.
ls -a
# ls -laq
total 44
drwx------ 4 user1 adm 4096 Nov 23 05:10 .
drwxr-xr-x. 12 root root 4096 Nov 22 13:05 ..
-rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout
-rw-r--r-- 1 user1 adm 193 Nov... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. Shell Programming and Scripting
All,
Objective : Extract the correct format of a file name.
Please share the script command which will extract the correct format of the file after untarring.
Example : If the file is of .csv format then extract filename.csv
if the file is having .CSV then extract the same.CSV
if the file... (1 Reply)
Discussion started by: Mahesh G
1 Replies
3. UNIX for Dummies Questions & Answers
Hi Folks,
While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
4. Shell Programming and Scripting
Hi All
Need a help to understand how one can automatically correct a file name using a shell script even if it is in a completely different format...
Ex : adv_OK_0215_mem_rules_firing.txt / advex_0215_OK_me_rule_fire.txt (or in any other format as above)
to :... (13 Replies)
Discussion started by: chatwithsaurav
13 Replies
5. Shell Programming and Scripting
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies
6. Shell Programming and Scripting
Hi All
I do have a file like this:
1
1 12 26 289 3.2e-027 GCGTATGGCGGC
2 12 26 215 6.7e+006 TTCCACCTTTTG
3 9 26 175 8.9e+016 GCGGTAACT
4 20 26 232 1.7e+013 TTTTTATTTTTTTTTTTTCC
5 ... (6 Replies)
Discussion started by: Lucky Ali
6 Replies
7. Programming
The below code throws error in the line number 32 where the function is defined.
But How to find the line where the function is called.
That is I want to throw the error at the line number 43 (as here the function is called).
The code is:
#include <iostream>
#include <string>... (9 Replies)
Discussion started by: SamRoj
9 Replies
8. Solaris
Hi all!
I wrote a file named as rman_backup.sh, and this is contents
#!/bin/ksh
ORACLE_SID=VNP;export ORACLE_SID
echo $ORACLE_SID
echo "Please Specify the kind of backup you want to take"
echo "1) LEVEL 0 VNP"
echo "2) LEVEL 1 VNP"
echo "3) EXPORT BACKUP"
echo "Enter your option"
... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies
9. Shell Programming and Scripting
Can someone please help me with my bourne shell script. I am a struggling newbie. I need create a script that will read an argument from a command line, access a config file with application file types, and open the file with the correct application. The file needs to be able to handle file... (3 Replies)
Discussion started by: 3dtiger
3 Replies
10. UNIX for Advanced & Expert Users
I'm trying to read the output of a .sql script (simple insert and commit oracle pl/slq script) to a log file using a shell script. My problem is I end up with a log file that looks like this:
sd12@phenix97:/detain/sd12/logs > cat 20071205_detain_20071206.log
12320496 rows created. Commit... (11 Replies)
Discussion started by: sd12
11 Replies