LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

awk variables

Posted 05-30-2011 at 02:40 PM by karthik3152

awk variables
In awk there are many default variables which can be used .
We will see each of them with examples:
acer@ubuntu:~$ cat > record1
John robinson
koren inc
phno:555555555


usha
yyy technologies
ph no:546456456


dddd
aaa technologies
ph no:44444444


acer@ubuntu:~$

consider the above record in which our requirement is to produce a single line...
LQ Newbie
Posted in Uncategorized
Views 269 Comments 0 karthik3152 is offline
Old

listing available disks and partitions

Posted 05-30-2011 at 08:30 AM by neonsignal

The format disk utility fdisk is a quick way of showing available disks and partitions (including those that are not mounted).
Code:
fdisk -l
Further information about the mounted file systems is provided by df, including used space, available space and the mount points.
Code:
df
Senior Member
Posted in Uncategorized
Views 259 Comments 0 neonsignal is offline
Old

recursively setting permissions

Posted 05-30-2011 at 08:26 AM by neonsignal

The chmod itself can be used recursively to set the permissions on a directory and the subtree of that directory:
Code:
chmod -R u=rwX,go=rX directory
the 'X' flag only sets execute permissions if the node is a directory or already has execute access.

Alternatively, find can be used to give a little more control over the changes. For example, sometimes it is useful to clear all the execute bits after data files have been transferred from a FAT32 system....
Senior Member
Posted in Uncategorized
Views 229 Comments 0 neonsignal is offline
Old

Scraping the barrel....

Posted 05-29-2011 at 10:03 AM by peonuser
Updated 05-31-2011 at 10:22 AM by peonuser

Some code snippets to play with:

#1
----------------------------------------------------------------
Code:
#!/bin/sh
# Determine the current U.S. Terrorist Threat Advisory level, and output it to
# a serial device
#
# Written by Matt Mets in 2008
# Modified by Computothought in 2011
# This code is released into the public domain, attribution is appreciated

#### Configuration Options ##############################################
...
Member
Posted in Uncategorized
Views 376 Comments 0 peonuser is offline
Old

Great Debian Community

Posted 05-29-2011 at 06:32 AM by alan_ri (Thoughts and other things about Linux, GNU, FOSS etc.)
Updated 01-27-2012 at 08:43 AM by alan_ri

The story goes like this;

There will be DebConf 11 in Banja Luka (Bosnia and Herzegovina) from 24th to 30th July 2011. It's actually very close to where I live, but the fact is that economic situation in my country is bad, lot of people are out of work or not being paid for their work, etc. Basically, I wasn't sure will I be able to pay for whatever is necessary to be at DebConf 11 by myself, so I decided to apply for sponsored registration which is defined as follows; [QUOTE][B]Sponsored...
Senior Member
Posted in Uncategorized
Views 652 Comments 0 alan_ri is offline

  



All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration