9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
2. 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
3. UNIX for Beginners Questions & Answers
#!/bin/bash
PH=(AD QD QC 5H 6C 8C 7D JH 3H 3S)
echo ${PH}
In the above array, how can I print to screen just the first 8 elements of ${PH} and have the last 2 elements print just below the first line starting underneath AD?
I need to do this in order to save terminal window spacing... (5 Replies)
Discussion started by: cogiz
5 Replies
4. 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
5. Shell Programming and Scripting
I have this code
echo $logfile | awk ' {arr++; next} END { for (i in arr) {print i} }'
that gives me this output
result1
result2
result3
I try to figure out how to get it like this
result1 result2 result3 (4 Replies)
Discussion started by: Jotne
4 Replies
6. Shell Programming and Scripting
set -A title
set -A author
count=1
index=0
while
do
read -A ${title}?"Booktitle: "
read -A ${author}?"Author(s): "
(( count = count + 1 ))
(( index = index + 1 ))
done
Hi... (1 Reply)
Discussion started by: bjhum33
1 Replies
7. Shell Programming and Scripting
hi,
i have the followiing scenario where by i am parsing teh following output using cut -d
like so
#!/bin/bash
output="ABCTable|
------------------|
|
------------------|
code |
name |
amount |"
col1= $output | cut -d'|' -f5
col2= $output | cut -d'|'... (1 Reply)
Discussion started by: nano2
1 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
hello,
can any help me how to can pass array as command line argument in korn shell.
also how to read a array from command line.
thanks
spandu (2 Replies)
Discussion started by: spandu
2 Replies