9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
2. Shell Programming and Scripting
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies
3. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
4. UNIX for Dummies Questions & Answers
Hi
I wanted to tar and gunzip a file named backup
tar: backup.tar: Wrote only 2244 of 10240 bytes
tar: Error is not recoverable: exiting now
Please tell me what I am doing wrong?
Please do help. (4 Replies)
Discussion started by: sonia102
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All
This is very basic query but I have a huge folder named backup that I need to transfer.
What is the command to convert the file in format backup.tar.gz so that I could transfer the folder.
Is the command gzip filename?
Thanks
Sonia.
:wall: (6 Replies)
Discussion started by: sonia102
6 Replies
6. Shell Programming and Scripting
can we get o/p of ls | wc - l command on the same line.
# ls nc*010412* | wc -l
23
# ls nc*010412* | wc -l
24
# ls nc*050412* | wc -l
21
# ls nc*040412* | wc -l
23
# ls nc*070412* | wc -l
22
my expectation is grepping specific lines from the file and... (8 Replies)
Discussion started by: sagar_1986
8 Replies
7. Shell Programming and Scripting
I have been trying this a lot of different ways and haven't found too much online. Here's what I've got so far:
j=0
declare -a first
zero=(`cat $tmpfile`)
for i in "${zero}"
do
command $i >> "${first}"
... (4 Replies)
Discussion started by: Azrael
4 Replies
8. Shell Programming and Scripting
hi;
as a pseudo;
while read psLine
do
myFunc $psLine
done < ps
i don't want to redirect ps command's to a file. in fact, my problem is "how can i
read stdout line by line in bash, sed, awk or any?"
thanks, (5 Replies)
Discussion started by: s. murat
5 Replies
9. UNIX for Dummies Questions & Answers
We want to make a history of errors and append a line to a file each day.
To do this we want to display the output of
Date and DU (of 1 file) on ONE line.
However if i type Date ; DU the output is displayed on two lines. Can Anyone help me please?
The output should look like this;
... (1 Reply)
Discussion started by: Robey
1 Replies