Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

1
vote
1answer
13 views

ksh script comments

Could you please review my script? ...
4
votes
1answer
98 views

How to implement 'cat' command using c?

A 'cat' command. The options are as follows: ...
2
votes
0answers
42 views

Synchronize 3 processes with fork() [closed]

I was given the following exercise in my university: Given 3 processes: d1 - print("I"), print("D") d2 - ...
1
vote
2answers
63 views

Remove NULL / empty fields using awk

just wanted to check with you could this be done better: ...
5
votes
1answer
106 views

Portability and “dark corner” gotchas in this “watchdog” program

The following program is intended to "watchdog" a child process, and all subprocesses the child spawns. The intended behavior is: A child process (as specified on the command line) is run in a ...
2
votes
1answer
144 views

List contents of a folder using a shell script and mail the folder

I want to list the contents of a folder and mail the list using a shell script. I Came up with the following script, please let me know if it is okay: ...
2
votes
1answer
76 views

Bash script to manage multiple Java Development Kits installations

I'm writing a bash script to manage multiple JDKs, the script is very simple, you have to choose a directory when you store all the jdk's, and the script maintain ...
-1
votes
1answer
43 views

bash file manipulation [closed]

I have files in a directory named so: 1welcome.avi 2introdution.avi I have a rhcsa.txt file that has what these files should be named as: rhcsa_1_welcome.avi rhcsa_2_introduction.avi both the ...
5
votes
2answers
68 views

Make a directory and change to it

A basic shell function to create a directory and change to it goes like this: mkcd () { mkdir "$1" && cd "$1"; } This works well in many cases but breaks ...
1
vote
1answer
454 views

How can I further optimize this Perl script for finding all unowned files and directories on Unix?

(Originally posted on Stack Overflow) Following my findings and suggestions in my other post How to exclude a list of full directory paths in find command on Solaris, I have decided to write a Perl ...