10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
need help to print the below ..
Content of file looks like below ..
read lines from above file and print o/p as below
print output like read 1st line and print
print output like read 2st line and print ... (4 Replies)
Discussion started by: rocking77
2. Shell Programming and Scripting
I have some 2000 names in a table like below.
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
3. Shell Programming and Scripting
i'm trying to write a tcsh script that reads in a text file (one column) and the runs a different command for each line of text.
i've found lots of example commands for bash, but not for tcsh.
can anyone give me a hint?
jill (8 Replies)
Discussion started by: giuinha
4. Shell Programming and Scripting
I have jobs (some 1000) defined in a file and I want to read those jobs and run a a command.
I want to read the entire file and run the following command
Delete -JOB "abc"
Delete -JOB "efg"
Can somebody help me... (4 Replies)
Discussion started by: karan8810
5. UNIX for Dummies Questions & Answers
how do I read in a file which includes a list of workstations and then run a command for each workstation ?
I am unclear which command to use to read in , or is this not possible ?
Thanks, (3 Replies)
Discussion started by: manni2
6. Shell Programming and Scripting
Okay, so I have a file containing line after line of three digit numbers. I need a script that does an action based on the last two numbers in this list.
So.... To get the last two numbers, I can have the script do
tail -2 filename.txt
But where I run into trouble is as follows. If... (6 Replies)
Discussion started by: UCCCC
7. Shell Programming and Scripting
How do I print output and read input on the same line in ksh?
echo Hello, what is your name? read name (1 Reply)
Discussion started by: robin_simple
8. Shell Programming and Scripting
When I run this:
PDHDURL=`/usr/bin/curl --silent http://www.phdcomics.com/comics.php | /usr/bin/grep -o http://www.phdcomics.com/comics/archive/.*.gif | head -1`
echo -e "$PHDURL"
It is totally blank. However, when I just run it from the terminal:
/usr/bin/curl --silent... (2 Replies)
Discussion started by: killer54291
9. Shell Programming and Scripting
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
10. UNIX for Dummies Questions & Answers
I have an output that I get from while read, I want to display it as the following, please help.
Original output from while read line loop:
This is my client=1
This is my client=2
I want it to look like this with... (7 Replies)
Discussion started by: dala