9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I'm working on a foreach loop to compare a couple sets of data. However, each datafile includes a header row. I'm wondering if it is possible to tell the foreach loop to skip the first line of data.
I've been using the basic code as follows:
foreach line ("`file.csv`")
set... (2 Replies)
Discussion started by: meteorologistks
2 Replies
2. Shell Programming and Scripting
Hi everyone
I have a file looks like this
X01 1 JOE 20100312
X02 TOD 20100312
X03 3 SAM 20100312
I wrote a script to assign the values in 5 columns to 5 variables. When I use cut command to assign column 2 or 3, it skips it if it is a space (see below)
... (3 Replies)
Discussion started by: nimo
3 Replies
3. Shell Programming and Scripting
This script is supposed to display a file ( crontab ), ask the user if they wish to update the file, then it goes through an update routine.
#!/bin/bash
FILE=/etc/crontab
tail -5 $FILE
echo -n "Does crontab need updating"
read HOURS
...routines ....etc...
Runs locally... (8 Replies)
Discussion started by: Bubnoff
8 Replies
4. Shell Programming and Scripting
I am trying to use wget to automate downloading of some mp3/wav files.
However, I can't get it to follow the link to the mp3s.
This is the line (it is not really the website):
wget -prl 1 http://website.com/alarmsHowever, if I right-click and copy the link on the webpage in firefox, then... (4 Replies)
Discussion started by: Narnie
4 Replies
5. Shell Programming and Scripting
Dear Guru:
This has got to be a difficult question, as I've worked on it for a good amount of time now & still puzzled...
So here is the simplified logic in my code:
while read LINE
do
#install a pkg with the name extracted from this line
install_pkg name
done <... (8 Replies)
Discussion started by: bluemoon1
8 Replies
6. HP-UX
Hi All,
I got a very strange problem, i have created a cron schedule that will run a programme once in every 12 mins, like
04,16,28,40,52 * * * * /myf/startProcessA 1> &-
Some time the cron skips the execution such as 04,28 instead of executing at 16 mins. it starts execution at 28, i... (6 Replies)
Discussion started by: nag_sundaram
6 Replies
7. UNIX for Dummies Questions & Answers
okay.. have monitored that the page out/h max and avg have been 0 for one week. is this possible...? huge applications will have swap space being utilised ... so i am suprised that for one whole week, it has actually been zero
please advise
thanks (1 Reply)
Discussion started by: yls177
1 Replies
8. UNIX for Dummies Questions & Answers
When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as:
mkdir calls the mkdir(2) system call.
What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies
9. UNIX for Dummies Questions & Answers
Hi folks,
I want to know all the commands for which man pages are available. How do i get it?
Cheers,
Nisha (4 Replies)
Discussion started by: Nisha
4 Replies