coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 22 guests online

Newest Member

beyondimagem

Hit Counter
9133536 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

awk - simple syntax example to parse passwd file
Description

Simple examples to print first 3 columns of passwd file:

# awk -F: '{ print $1; print $2; print $3 }' /etc/passwd

# awk -F: '{ print $1 " " $2 " " $3 }' /etc/passwd

# awk -F: '{ printf("%s %s %s\n", $1, $2, $3 }' /etc/passwd
Example

awk -F: '{ print $1; print $2; print $3 }' /etc/passwd

Return to search results

Random coolcommands

coolcommand: metahs - how to replace a slice in a hotspare pool in Solaris Volume Manager
Example: metahs -r hsp001 c1t1d0s4 c2t1d0s4
[show me the details]
coolcommand: how to change the ownership of a database in Sybase
Example: sp_changedbowner new_owner
[show me the details]
coolcommand: how to test if the ascii value of a string precedes that of another string in a korn shell script
Example: test $string1 < $string2; [[ $string1 < $string2 ]]
[show me the details]
coolcommand: runmqchl - start a channel in Websphere MQ
Example: runmqchl -m MQBOBOQ1 -c MQP2.MQBOBOQ1
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum