08-13-2008
Please try
cat /proc/version
and Grep for words "Red" and "CentOS" you can event get the version from the same.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
------------------------------
$x=" hi";
$tabspace=0;
while ($x =~ /\t/g )
{
$tabspace++;
}
print $tabspace;
---------------------------------
1.)when i tried it without "g" ($x = ~/\t/ )... when i run the script it utilizes around 95% cpu and system hangs and i did "End process"... (0 Replies)
Discussion started by: sekar sundaram
0 Replies
2. UNIX for Dummies Questions & Answers
Hi
I'm wondering how I can find all the files which were installed on certain date?
For example: I'm looking for alle the files which were installed on the 11.09.06 on the system.
Does somebody know how to do this?
Thanks
Reto (2 Replies)
Discussion started by: goldenglobe
2 Replies
3. Shell Programming and Scripting
Im trying to make a very simple find the first file with the .zip extension in a specific folder and open that file.
The folder path and file name will vary every-time and it may contain spaces. If I try to look
For this example the folder directory is /Users/username/Desktop/testfolder/abc... (6 Replies)
Discussion started by: elbombillo
6 Replies
4. Shell Programming and Scripting
Hi,
I have a log file containing data on emails sent. Looks a bit like this for one email:
Content-Type: text/plain;
charset="UTF-8"
Date: 12 Jun 2008 14:04:59 +0100
From: from@email.com
Subject: xcf4564xzcv
To: recip@email.co.uk
Size = 364 Jun 12 14:04 smtp_234sldfh.tmp
I need to... (5 Replies)
Discussion started by: terry2009
5 Replies
5. Shell Programming and Scripting
Hi,
We have a requirement to find the set of filenames from the group of files in a specified folder based on
(i) version number
(ii) sequence number
such that, for any given sequence number in a day only the latest version filenames have to indentified.
Below is the format of... (4 Replies)
Discussion started by: Deepakbabu
4 Replies
6. Shell Programming and Scripting
Hi ,
I want to write a simple script.
I have two files
file1:
BCSpeciality
Backend
CB
CBAPQualDisp
CBCimsVFTRCK
CBDSNQualDisp
CBDefault
CBDisney
CBFaxMCGen
CBMCGeneral
CBMCQualDisp
file2:
CSpeciality
Backend (8 Replies)
Discussion started by: ramky79
8 Replies
7. UNIX for Dummies Questions & Answers
HI guys,
Could you help me writing a simple version control script for a text files.
the format could be
./version_control <file(s)> (I want it to be able to work with more than 1 file at the same time)
commands are add and get, add means you add new file(s) to the archive, get means you... (4 Replies)
Discussion started by: s3270226
4 Replies
8. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone. I've been reading around and am a little bit overwhelmed, hoping to find a kind soul out there to hold my hand through writing my first script. This need has emerged at work and I haven't much experience writing shell scripts, but this is a problem we have with a production environment... (13 Replies)
Discussion started by: thirdcoaster
13 Replies
10. Shell Programming and Scripting
Hello guys, im new to to unix/linux
i have a text file like this:
person1@test.com iisiiasasas
person2@test.com 123w2 3233
sajsja person3@test.com jsajjsa
sajsjasaj person4@test.com
I want to extract only e-mail address and get rid of all other stuff, i want an output like this
... (4 Replies)
Discussion started by: RazorMX
4 Replies
LEARN ABOUT PLAN9
consolefs
CONSOLEFS(4) Kernel Interfaces Manual CONSOLEFS(4)
NAME
consolefs, C - file system for console access
SYNOPSIS
aux/consolefs name dev [ name dev ... ]
C system
DESCRIPTION
To ease administration of multiple machines one might attach many serial console lines to a single computer. Consolefs is a file system
that lets multiple users simultaneously access these console lines. Each name/dev pair represents the name of a console and the serial
line device associated with it. Consolefs presents a single level directory with two files per console: name and namectl. Writes of name
are equivalent to writes of dev and reads and writes of namectl are equivalent to reads and writes of devctl. Consolefs broadcasts any-
thing it reads from dev to all readers of name. Therefore, many users can con(1) to a name, see all console output, and enter commands to
the console.
To keep users from inadvertently interfering with one another, notification is broadcast to all readers whenever a user opens or closes
name. For example, if user boris opens a console that users vlad and barney have already opened, all will read the message:
[+boris, vlad, barney]
If vlad then closes, boris and barney will read:
[-vlad, boris, barney]
Consolefs posts the client end of its 9P channel in /srv/consolefs; mount (see bind(1)) this file to see the consoles. An example of 2
consoles complete with console logging is:
% aux/consolefs bootes /dev/eia0 fornax /dev/eia1
% mount /srv/consoles /mnt/consoles
% ls -p /mnt/consoles
bootes
bootesctl
fornax
fornaxctl
% cat /mnt/consoles/fornax >> /sys/log/fornax &
% cat /mnt/consoles/bootes >> /sys/log/bootes &
The rc(1) script C automates this procedure. It uses import(4) to connect to /mnt/consoles on the machine connected to all the consoles,
then uses con(1) to connect to the console of the machine system. The script must be edited at installation by the local administration to
identify the system that holds /mnt/consoles.
FILES
/srv/consoles
Client end of pipe to server.
SOURCE
/sys/src/cmd/aux/consolefs.l
/rc/bin/C
CONSOLEFS(4)