Skip to content

Commit 8279d2d

Browse files
committed
Update Shell Programming.md
1 parent 7b80692 commit 8279d2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Shell Programming.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ sed -n '5,7p'
77
88
```
99

10-
##2. print the specific colume
10+
##2. print the specific colume in three methods
1111
```
1212
sed -n '5p' hello | awk 'BEGIN {FS=","} {print $4}'
13+
head -n 4 hello | tail -n 1 | cut -d " " -f 3
14+
sed -n 4p hello | cut -d " " -f 3
15+
#There are two way to get the specific column with cut or awk. Also, head and tail to get the certain line.
1316
```

0 commit comments

Comments
 (0)