Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Sh script help needed

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-13-2017   -   Original Discussion by samd12
samd12 samd12 is offline
Registered User
 
Join Date: Jul 2017
Last Activity: 13 July 2017, 11:01 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sh script help needed

Can anyone tell me what this would do in an .sh script



Code:
@@ -912,10 +912,12 @@


Moderator's Comments:
Sh script help needed Please use CODE tags as required by forum rules!

Last edited by RudiC; 07-14-2017 at 04:43 AM.. Reason: Added CODE tags.
Sponsored Links
    #2  
Old Unix and Linux 07-13-2017   -   Original Discussion by samd12
rdrtx1 rdrtx1 is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 18 November 2017, 6:17 PM EST
Location: Houston, Texas, USA
Posts: 983
Thanks: 0
Thanked 338 Times in 319 Posts
My guess is output from diff -u: @@ -912,10 +912,12 @@. The part -912,10 relates to file1 and the part +912,12 to file2. diff will show a piece of text, which is 10 lines long starting from line number 912 in file. And the same about the file2. diff shows 12 lines starting from line 912.
The Following User Says Thank You to rdrtx1 For This Useful Post:
drl (07-15-2017)
Sponsored Links
    #3  
Old Unix and Linux 07-13-2017   -   Original Discussion by samd12
samd12 samd12 is offline
Registered User
 
Join Date: Jul 2017
Last Activity: 13 July 2017, 11:01 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I have a script failing with the following:


Code:
(Stripping trailing CRs from patch.)
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

Here is code to line 4


Code:
diff -Naur original/smali_classes3/dji/apppublic/reflect/AppPublicReflect.smali mod/smali_classes3/dji/apppublic/reflect/AppPublicReflect.smali
--- original/smali_classes3/dji/apppublic/reflect/AppPublicReflect.smali    2017-07-06 01:03:41.091002600 +0200
+++ mod/smali_classes3/dji/apppublic/reflect/AppPublicReflect.smali    2017-07-06 23:37:56.820426300 +0200
@@ -912,10 +912,12 @@


Moderator's Comments:
Sh script help needed Please use CODE tags as required by forum rules!
As you can see, it is difficult to tell what is your text and what is system (error) text.

Last edited by RudiC; 07-14-2017 at 04:45 AM.. Reason: Added CODE tags.
    #4  
Old Unix and Linux 07-15-2017   -   Original Discussion by samd12
PikK45 PikK45 is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 15 July 2017, 9:15 AM EDT
Location: Chennai
Posts: 581
Thanks: 51
Thanked 75 Times in 73 Posts
There is no script!
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expect script help needed- script failing if router unavailable mrkz1974 Shell Programming and Scripting 3 05-20-2011 12:27 PM
Script needed!! - Please help ntgobinath Shell Programming and Scripting 6 06-16-2009 03:51 AM
Script help needed Sagarddd Shell Programming and Scripting 1 11-18-2008 02:02 PM
Script needed vpandey Shell Programming and Scripting 3 03-04-2008 09:45 AM
Script Needed Dastard Solaris 1 03-20-2007 11:54 AM



All times are GMT -4. The time now is 11:42 AM.