Servers

Tavak Card6 (Linux Commands)

Posted on

Now you can see some nice commands for beginners 🙂 cat example.txt | grep ‘salam’   –color cat example.txt | grep ‘salam’   | cut -d’:’ -f2 cat example.txt | grep ‘salam’   | cut -d’:’ -f2 | cut -d’/’ -f3 Check the Tavak Card6 to see more details

Servers

Bash Split String (Separate or Cut)

Posted on

In Linux systems and Bash environment we can use many different commands for this purpose ; for example see the followings : $cut example : echo “my,name,is,iman” | cut -d’,’ -f2 result : name ; it means column number 2 seprated by “,” $awk example : echo “my name is iman” | awk ‘{print $4}’ […]