10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
2. UNIX for Dummies Questions & Answers
hay
i am trying to get JUST the PID from the ps command.
my command line is:
ps -ef | grep "mintty" | cut -d' ' -f2
but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that.
i know i can use awk or cut... (8 Replies)
Discussion started by: ran ber
8 Replies
3. Shell Programming and Scripting
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am new to linux. I am using more command to view the contents of a file. If the file has many pages i am using f to move forward to the next page.
But when i press f it skips to two pages instead of one page. i checked the man more.
It shows the default is 1. Please share your... (1 Reply)
Discussion started by: nokiak810
1 Replies
5. 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
6. Shell Programming and Scripting
Hi
I tried to extract 19 characters (default) enclosed with in tag from a file using cut command. If the characters comprises of double space, the cut command gives the output with a single spacing.
file 1
<name>Kumar Rajasekaran</name>
cut -c7-26 "file1"
the out put i received is ... (48 Replies)
Discussion started by: Sekar1
48 Replies
7. 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
8. UNIX for Dummies Questions & Answers
Hi
I have a shell script that looks for running processes in order to kill them. The script (ksh) gets the PID of these processes using the following:
PROCS=`ps -fu ${USERID} | egrep "MONITOR" | grep -v grep | cut -d" " -f4`
However, I spotted an issue where PID's of different lengths... (3 Replies)
Discussion started by: mikem22
3 Replies
9. Shell Programming and Scripting
i want to give numbers to cut without worrying about the spaces;
echo "12 345 6 78 9" | cut -c 1-9
echo "123 456 789" | cut -c 1-9
echo "1 2 3 4 5 6 7 8 9" | cut -c 1-9
the output of these three must be allways;
123456789
is that posible? (6 Replies)
Discussion started by: Tártaro
6 Replies
10. 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