Search Results

Search: Posts Made By: nitinupadhyaya8
1,316
Posted By nitinupadhyaya8
Passing value of a variable in sed
Hi,
I want to pass value of a variable track_line which is the line number to sed. Sed should print the lines starting from track_line till the last
line of the file. I tried the below command but...
1,362
Posted By nitinupadhyaya8
Thank you for your reply guys. I guess the file...
Thank you for your reply guys.
I guess the file would have nothing in it.
1,568
Posted By nitinupadhyaya8
awk -F"(" '{print $2}' file | awk -F")" '{print...
awk -F"(" '{print $2}' file | awk -F")" '{print $1}'

awk -F"(" '{print $2}' file | sed 's/)//g'

This would work only if the content of the file is as below

SYSLIB(SANJ)
INCLUDE...
1,362
Posted By nitinupadhyaya8
Hi Bashar, I believe 1) try sh -x or bash...
Hi Bashar,

I believe 1) try sh -x or bash -x
would only help if the script ran.

But in my case, the script did not run and I did not get any error either.
This was the scenario given to me...
1,362
Posted By nitinupadhyaya8
Not able to run shell Script
Hi,

1) When I run a script name myscript.sh, I do not see any error nor does the script get executed. What can be the possible reason? This was an interview question asked recently

eg.

sh...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy