- published: 25 Jun 2011
- views: 10226
37:49
UNIX-1.5 Awk, Cut, Last, Wc Commands Video Tutorial
Make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.
facebook: face...
published: 01 Jun 2012
UNIX-1.5 Awk, Cut, Last, Wc Commands Video Tutorial
Make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.
facebook: facebook.com/fuzicast
twitter: @fuzicast
youtube: youtube.com/yuejdesigner85
awk -F'|' 'BEGIN{ initialization } { code block } END{ finalization }' - general syntax
default delimiter is space ' '
VAR="value" - define a variable
print VAR - print a variable
NF is number of fields
$NF is value of last field
print "'$EXTERNAL_VAR'" - double single $EXTERNAL_VAR single double
VAR~/pattern/ - pattern patching
VAR!~/pattern/ - does not match
FS returns value of field separator, same as -F
OFS returns output field separator
print $1,$2 is separated
NR returns line number
FILENAME returns current filename
awk -v var1=value1 - pre-assign values to variables in awk
awk -F, 'conditions { code block }' filename - condition must be right before code block
cut - get columns from file
cut -d, -f1-2 filename - print 1st to 2nd columns
cut -c1-5 filename - print first 5 characters
cut -d, -f2- filename - print from 2nd column to last column
cut -d, -f1,4,5 filename - print 1st, 4th and 5th column
cut -d, -f-3 filename - print from 1st to 3rd column
cut -d, -f1,3-5 filename - print 1st, 3rd to 5th column
wc - word count
wc -l - line count
wc -c - print number of bytes
wc - print number of newline, word and bytes
wc -m - character count
wc -w - word count
last - check login history
last -10 - show last 10 logins
last -F - show full login information
- published: 01 Jun 2012
- views: 4615
9:46
Hakology - awk basics pt1
In tonights episode were going to be looking at awk and TAPL.
http://www.sendspace.com/...
published: 25 Mar 2012
Hakology - awk basics pt1
In tonights episode were going to be looking at awk and TAPL.
http://www.sendspace.com/file/eyplaz
- published: 25 Mar 2012
- views: 3075
23:11
Programacion en shell script: AWK e Hilos
Aqui esta un video unificado de AWK e Hilos, en este caso Hilos en C de linux
visiten: h...
published: 15 Dec 2011
Programacion en shell script: AWK e Hilos
Aqui esta un video unificado de AWK e Hilos, en este caso Hilos en C de linux
visiten: http://www.kanatajmusik.jimdo.com
y en facebook como: Katana Anime Musik
- published: 15 Dec 2011
- views: 548
5:41
BASH Lesson - df and awk (disk space)
Get a GUI pop-up every hour informing you of used disk space.
Get this script at http://fi...
published: 31 Aug 2009
BASH Lesson - df and awk (disk space)
Get a GUI pop-up every hour informing you of used disk space.
Get this script at http://filmsbykris.com/bashscripts/script.php?id=1251731986
Visit http://www.bashscripts.info for more scripts and commands.
- published: 31 Aug 2009
- views: 14821
66:40
Linux Command Line: Day 6: Sed and Awk
Title:
The Linux Command Line: Day 6: Stream Editing with Sed and Awk
Notes: http://www....
published: 08 Sep 2012
Linux Command Line: Day 6: Sed and Awk
Title:
The Linux Command Line: Day 6: Stream Editing with Sed and Awk
Notes: http://www.jncasr.ac.in/ccms/esc/
Instructor:
Ershaad Basheer
Venue:
TUE-CMS, Jawaharlal Nehru Centre for Advanced Scientific Research (JNCASR), Bangalore, India
Description:
This series of classes was originally intended to introduce graduate students in the sciences to the Linux command line. The classes were organized and supported by the Thematic Unit of Excellence - Computational Materials Science (TUE-CMS), JNCASR.
In this video:
Patterns in Sed
Introduction to Awk
Awk Variables
The BEGIN and END Blocks
Patterns in Awk
This video made using Kdenlive
http://www.kdenlive.org
- published: 08 Sep 2012
- views: 2460
63:29
Linux Command Line: Day 5: Sed and Awk
Title:
The Linux Command Line: Day 5: Stream Editing with Sed and Awk
Notes: http://www....
published: 08 Sep 2012
Linux Command Line: Day 5: Sed and Awk
Title:
The Linux Command Line: Day 5: Stream Editing with Sed and Awk
Notes: http://www.jncasr.ac.in/ccms/esc/
Instructor:
Ershaad Basheer
Venue:
TUE-CMS, Jawaharlal Nehru Centre for Advanced Scientific Research (JNCASR), Bangalore, India
Description:
This series of classes was originally intended to introduce graduate students in the sciences to the Linux command line. The classes were organized and supported by the Thematic Unit of Excellence - Computational Materials Science (TUE-CMS), JNCASR.
In this video:
Stream Editing
Regular Expressions
Introduction to Sed
Sed Examples
This video made using Kdenlive
http://www.kdenlive.org
- published: 08 Sep 2012
- views: 4928
7:24
Awk-Ward: E3 2012
Wekenlang, nee maandenlang, werd er gesmeekt om een nieuwe Awk-Ward. Waarom? Zelfs Joost w...
published: 22 Jun 2012
Awk-Ward: E3 2012
Wekenlang, nee maandenlang, werd er gesmeekt om een nieuwe Awk-Ward. Waarom? Zelfs Joost wist dat niet, maar de boothbabes bij de E3 hadden al helemaal geen idee. Maar nadat onze soepele sexmagneet over de beursvloer wervelde... wisten ze het nog steeds niet. Daarom quoten we Johan Cruijff, die ooit eens zei: 'Er is maar één moment dat Awk-Ward kan komen, en dat moment is nooit te vroeg of te laat.'
- published: 22 Jun 2012
- views: 14681
8:32
Learning Linux Lesson 30 Using AWK and split to extract data
More videos like this online at http://www.theurbanpenguin.com
One of the real powerfull e...
published: 30 Jan 2013
Learning Linux Lesson 30 Using AWK and split to extract data
More videos like this online at http://www.theurbanpenguin.com
One of the real powerfull elements of AWK is its own in-built functions and today we will look at using the split function with AWK. The syntax for aplit is litited as the following:
split(string,array,[separator]) In simple term split creates an array from a text string, the elements of the array are delimited by the optional separator. If no separator is supplied a space is assumed. In my example I will work with email addresses to extract the domain name john.doe@example.com fed into split("john.doe@example.com",DNS,"@") would give:
DNS[1]=john.doe and
DNS[2]=example.com
Se how we then build this into awk to pass data from text files.
- published: 30 Jan 2013
- views: 228
5:36
Awk-Ward: Gamescom 2012
Je vroeg het je natuurlijk al een tijdje af; waar blijft de nieuwe Awk-Ward? Nou, hij is h...
published: 08 Oct 2012
Awk-Ward: Gamescom 2012
Je vroeg het je natuurlijk al een tijdje af; waar blijft de nieuwe Awk-Ward? Nou, hij is hier, in de volste glorie der gloria. Ward heeft zich afgelopen GamesCom weer uitgeleefd en dat konden we jou natuurlijk niet onthouden.
Check het vernieuwde http://www.pu.nl
- published: 08 Oct 2012
- views: 8401
20:12
UNIX-1.8 ps, netstat, kill, pidof, fuser, awk commands (Video Tutorial)
Make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.
facebook: face...
published: 10 Jun 2012
UNIX-1.8 ps, netstat, kill, pidof, fuser, awk commands (Video Tutorial)
Make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.
facebook: facebook.com/fuzicast
twitter: @fuzicast
youtube: youtube.com/yuejdesigner85
ps -fu username - displays all processes started by user
ps -ef - display all processes running
ps -ef | grep 'pname' - look for specific process
netstat -t - see all tcp connections
netstat -an - see all network connections
netstat -c - netstat will execute every second
netstat -p - display processes that use these connections
kill pid - kills process by pid
kill -9 pid - force kill process by pid
& - execute process in background
free - show memory usage, alternatively use top
pidof command - shows process id for running process/command
fuser -vu dir - displays all processes that are using dir, along with owner id of processes
echo "hello world" | awk '{ print length($1) }' - prints length of field
echo "hello world" | awk '{ print substr($1, 3) }' - prints llo, substring function
echo "hello world" | awk '{sub(regex, replacement); print}' - replace pattern on line and print
echo "HELLO world" | awk '{ print tolower($1) }' - lower case field 1
echo "hello world" | awk '{ print toupper($1) }' - upper case field 1
- published: 10 Jun 2012
- views: 1927
Youtube results:
66:45
Linux Command Line: Day 7: Sed and Awk
Title:
The Linux Command Line: Day 7: Stream Editing with Sed and Awk
Notes: http://www....
published: 08 Sep 2012
Linux Command Line: Day 7: Sed and Awk
Title:
The Linux Command Line: Day 7: Stream Editing with Sed and Awk
Notes: http://www.jncasr.ac.in/ccms/esc/
Instructor:
Ershaad Basheer
Venue:
TUE-CMS, Jawaharlal Nehru Centre for Advanced Scientific Research (JNCASR), Bangalore, India
Description:
This series of classes was originally intended to introduce graduate students in the sciences to the Linux command line. The classes were organized and supported by the Thematic Unit of Excellence - Computational Materials Science (TUE-CMS), JNCASR.
In this video:
Awk Fields and Records
Examples
This video made using Kdenlive
http://www.kdenlive.org
- published: 08 Sep 2012
- views: 1748
4:31
Awk-Ward: GamesCom 2011
We kennen Ward hier op de redactie als een spontane, aardige, maar zo nu en dan ook een be...
published: 26 Aug 2011
Awk-Ward: GamesCom 2011
We kennen Ward hier op de redactie als een spontane, aardige, maar zo nu en dan ook een beetje rare knul. Dat die rare kant van Ward voor de camera soms een eigen leven kan gaan leiden, hebben we aan den lijve ondervonden. Dit zorgt voor hilarische taferelen, die we vanaf nu in deze nieuwe rubriek graag met jullie willen delen. Klaar? Ja? Mooi! Popcorn en een zakdoekje om de tranen van het lachen mee weg te vegen is ten zeerste aan te raden. Enjoy, want hier is: Awk-Ward!
Voor meer info check: http://www.pu.nl!
- published: 26 Aug 2011
- views: 10451
5:44
Learning Linux Lesson 29 Using AWK to display non-system users
More videos like this online at http://www.theurbanpenguin.com
SED and AWK are very much t...
published: 29 Jan 2013
Learning Linux Lesson 29 Using AWK to display non-system users
More videos like this online at http://www.theurbanpenguin.com
SED and AWK are very much the staple command line tools for any sysadmin in UNIX or Linux. In this tutorial we use awk by example a see how we can test the value of a field within AWK so we can display only non-system accounts from /etc/passwd
- published: 29 Jan 2013
- views: 218
11:32
Basic UNIX Commands-awk
A very short tutorial on the basic "one-liner" style functionality of awk
Full course at:...
published: 29 Sep 2012
Basic UNIX Commands-awk
A very short tutorial on the basic "one-liner" style functionality of awk
Full course at: http://idl.utsa.edu/me5013
- published: 29 Sep 2012
- views: 262