mastercheif Posted April 14, 2017 Report Posted April 14, 2017 sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man ? Quote
k2s Posted April 14, 2017 Report Posted April 14, 2017 4 minutes ago, mastercheif said: sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man ? Number of lines in a file man head -n 2 antey, first 2 lines same for tail google chesey antha opika kuda leda man Quote
Naaperushiva Posted April 14, 2017 Report Posted April 14, 2017 5 minutes ago, mastercheif said: sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man ? bro aa 3 files lo first 2 lines and last 1 line display chesadhi anukunta... unix commands vaadi 5 yrs ayipoyindhi Quote
mastercheif Posted April 14, 2017 Author Report Posted April 14, 2017 2 minutes ago, k2s said: Number of lines in a file man head -n 2 antey, first 2 lines same for tail google chesey antha opika kuda leda man kopadaku thatha... manam manam friends kada. it's executing a script with two params daani taruvatha aa head tail undhi. Quote
mastercheif Posted April 15, 2017 Author Report Posted April 15, 2017 3 minutes ago, Naaperushiva said: bro aa 3 files lo first 2 lines and last 1 line display chesadhi anukunta... unix commands vaadi 5 yrs ayipoyindhi kaadu tammudu .. it's executing a script with two params daani taruvatha aa head tail undhi. Quote
Naaperushiva Posted April 15, 2017 Report Posted April 15, 2017 3 minutes ago, mastercheif said: kaadu tammudu .. it's executing a script with two params daani taruvatha aa head tail undhi. ok ok....but aa head and tail commands dhaanike.... head default gaa first 10 lines display chesthadi...tail kooda same but last 10 default gaa choopisthadhi Quote
HyperAdi Posted April 15, 2017 Report Posted April 15, 2017 http://www.linfo.org/head.html A pipeline is a sequence of one or more commands separated by the character | Quote
k2s Posted April 15, 2017 Report Posted April 15, 2017 7 minutes ago, mastercheif said: kopadaku thatha... manam manam friends kada. it's executing a script with two params daani taruvatha aa head tail undhi. Sh - use shell to execute ani Odi___.sh- is main shell script, which take some cmd line arguments. Next .sql and some string are those cmd line arguments.. aa script execute ayina tarvata vachina result lo first 2 lines and last 1 line nee mohana kottu ani dani meaning Quote
Prabhas_Fan Posted April 15, 2017 Report Posted April 15, 2017 7 minutes ago, k2s said: Sh - use shell to execute ani Odi___.sh- is main shell script, which take some cmd line arguments. Next .sql and some string are those cmd line arguments.. aa script execute ayina tarvata vachina result lo first 2 lines and last 1 line nee mohana kottu ani dani meaning Exactly...nuvvu super thatha Quote
newsophile Posted April 15, 2017 Report Posted April 15, 2017 38 minutes ago, mastercheif said: sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man ? | ..dinni pipe antaru man.. Use entante pipe mundu unna command yokka output ni pipe tarvata command ki input ga istunnav .. Head -n 2 ante print only first 2 lines from the output ani.. Tail -n 1 print last 1 line from the output ani.. So..head -n 2| tail -n 1 niku 2nd line from your. Sh script output ni print chestadi.. Quote
mastercheif Posted April 15, 2017 Author Report Posted April 15, 2017 43 minutes ago, k2s said: Sh - use shell to execute ani Odi___.sh- is main shell script, which take some cmd line arguments. Next .sql and some string are those cmd line arguments.. aa script execute ayina tarvata vachina result lo first 2 lines and last 1 line nee mohana kottu ani dani meaning Thatha gariki dhanyavadanamulu Quote
reddyeee Posted April 15, 2017 Report Posted April 15, 2017 14 hours ago, mastercheif said: sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man ? Script run chesinappudu vachina output lo first 2 lines and then daanilo last 1 line. So technically script output lo 2nd line printing Quote
mastercheif Posted April 15, 2017 Author Report Posted April 15, 2017 3 minutes ago, reddyeee said: Script run chesinappudu vachina output lo first 2 lines and then daanilo last 1 line. So technically script output lo 2nd line printing Accurate answer... Quote
andhrafan85 Posted April 15, 2017 Report Posted April 15, 2017 16 hours ago, mastercheif said: sh odi_script.sh Audit_Execution.sql testload | head -n 2 | tail -n 1 pai command lo aa bold part yenti man Quote
mastercheif Posted April 15, 2017 Author Report Posted April 15, 2017 Just now, andhrafan85 said: Its sending first 2 lines in .sql file and last line from testload to the shell script as input parameters wrong broder... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.