10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Experts,
Here is my problem..
cat abc.txt
1,"nathan available"
2,"MW nathan available"
3,"HW nathan available"
How can i grep for "nathan available" alone.
I tried grep -w "nathan available"
Problem is that the pattern is enclosed in Quotes " ".
I know we can do grep... (2 Replies)
Discussion started by: sathyaonnuix
2 Replies
2. UNIX for Dummies Questions & Answers
Guys, I have the following code
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
void read2();
main(int argc, char** argv)
{
int pid,status;
pid=fork();
if ( pid == 0 )
{
read2(argv,... (4 Replies)
Discussion started by: pfpietro
4 Replies
3. UNIX for Dummies Questions & Answers
Hi guys
Quick question
Im creating an FTP server and im chrooting each user to there home directory blah blah. Ive also setup scponly so there locked etc.
Im a novice at unix and have just reaslised the primary group of scponly is the username of one of the ftp users... which im sure... (1 Reply)
Discussion started by: mokachoka
1 Replies
4. Shell Programming and Scripting
When I have a file like this:
0084AF aj-123-a NAME Ajay NAME Kumar Engineer
015ED6 ck-345-c
020B25 ef-456-e
027458 pq-890-p NAME Peter NAME Salob Doctor
0318F0 xy-123-x NAME Xavier Arul NAME Yesu Supervisor
0344CA de-456-d
where - The first NAME is followed by... (6 Replies)
Discussion started by: ajay41aj
6 Replies
5. Shell Programming and Scripting
Just a quick question on grep/egrep.
I am writing a shell script that is looking for certain strings in a text file. It works well and gets exactly what I need.
However, the way the program writes to the text file, it puts the timestamp in a line above the string I am looking for and the path... (3 Replies)
Discussion started by: thecoffeeguy
3 Replies
6. AIX
Hi,
At best I'm a junior admin with a big problem.
My developers have got my root password and mgmt insists they need it.
I can't even change it when people knowing it leave.
I'm certain they've hardcoded it into routines. I've searched my servers and grepped everything & can't find it.
... (5 Replies)
Discussion started by: keith.m
5 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
Quick question from a fairly new to Unix developer.
if
then
completedLogFile=$logfile.$(date +%Y%m%d-%H:%M:%S)
mv $logfile $completedLogFile
fi
I understand that this portion of code is simply copying a tmp logfile to a completed logfile when a condition is true. The... (2 Replies)
Discussion started by: JohnnyBoy
2 Replies
8. UNIX for Dummies Questions & Answers
Wat is the difference between the cp mv ln etc in /usr/sbin/static
and cp mv ln functions in /usr/bin (4 Replies)
Discussion started by: DPAI
4 Replies
9. Shell Programming and Scripting
Just a super quick question:
how do you put a link in your php code.
I want to make a link to something in /tmp directory.
i.e. how do you put a href into php, I think it's done a bit differently.
thanks
john (1 Reply)
Discussion started by: jmg5
1 Replies
10. UNIX for Dummies Questions & Answers
I know in DOS, when you want to pull up your last/previous command, you hit the up/down arrows. How do you do that with UNIX? (3 Replies)
Discussion started by: Tracy Hunt
3 Replies