10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am running under ubuntu1 14.04 and I have a script which is sending given process names to vanish so that I'd see less output when I run most popular tools like top etc in terminal window. In usual method it works.
Whenever I restart the system, I have to enter the same data from... (2 Replies)
Discussion started by: baris35
2 Replies
2. Shell Programming and Scripting
hello, i have a problem with my script
#!/bin/bash
linenum=$(grep -n -w somedata /usr/local/xx/xxx.txt |cut -f1 -d:);
if
then
linestart=$((linenum-1));
linesend=$((linenum+3));
sed -i "$linestart,$linesend d" /usr/local/xx/xxx.txt;
fi
this script works fine from terminal... (3 Replies)
Discussion started by: extra93
3 Replies
3. Homework & Coursework Questions
Post deleted (1 Reply)
Discussion started by: mescu
1 Replies
4. UNIX for Dummies Questions & Answers
I went to a job interview, and one of the questions that were put to me was "What files do not contain user data?", and response options were:
1. /etc/passwd
2. /etc/pasword
3. /etc/group
4. /etc/shadow
5. /etc/gshadow
I chose "2. /etc/password" and I think that is correct or not?
... (1 Reply)
Discussion started by: mescu
1 Replies
5. Shell Programming and Scripting
hi all
i'm new in shell scripting and now i'm working on project and i wanna make a function take input from user and test it's datatype then if correct write it to file
i wounder what is the best way to do this ?
can i use awk ?
edit by bakunin: Please give your threads a meaningful... (5 Replies)
Discussion started by: mohamed91
5 Replies
6. Shell Programming and Scripting
Hi All
I have a script that moves files from one dir to another dir based on date, but I would like to change it in a way that whoever is going to run to enter the dates in which files will be removed. This is my script:
#!/bin/sh
touch -mt 201302250000 /tmp/ref3
touch -mt 201302282359... (14 Replies)
Discussion started by: fretagi
14 Replies
7. Shell Programming and Scripting
As I add new data to database.txt I want to generate a unqiue User Id. This is my current solution.
echo $RANDOM:$lname:$fname >> database.txt
But I seem to have problems when I try and use $RANDOM for formatting like so:
grep "^4539" database.txt | awk -F":" '{print "User... (4 Replies)
Discussion started by: yonkers062986
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
i have a report which I basically need to format before i email it to the User.
it comrises of data in below format currently
YOMP_CSC_ASSESS_SCY062 cancelled
SOMO_Ckswed_ACEAMT_PC3 completed
SOMO_sdasf_TAX_ASSET completed
SOMP_CSC_ndksljfh_SCY060 cancelled
I need it in the below... (2 Replies)
Discussion started by: rohit.shetty84
2 Replies
9. Shell Programming and Scripting
if my user has to enter the name of months to carry out a search how can I limit the input values to only the month names and nothing else?
so far my input criteria for the user is this:
i would like it so the user can only enter the months in the way i have stated. otherwise they would... (11 Replies)
Discussion started by: amatuer_lee_3
11 Replies
10. AIX
Hi everyone,
I have no AIX experience at all. We have an IBM Server running AIX v.5.1. The server has a DDS-4 tape drive. I need to take complete system and user data backup.Should be able to restore the system and the user data in the event of system corruption or disaster. I was told that for... (5 Replies)
Discussion started by: Sezgin
5 Replies