Solved

Shell Script - Syntax help

Posted on 2011-03-23
2
399 Views
Last Modified: 2012-05-11
What does it mean if they say the following

Edit Makefile with following commands:
1,$s?/lib/ ?/lib32/ ?g
1,$s?-q64??g
1,$s?/lib/sysliblist?/lib32/sysliblist?g
0
Comment
Question by:mnis2008
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 35204432
Is this a homework assignment? Presumably the editor used is VI/VIM,etc.
The initial parameter deals with the scope.
The next deals with the action and the condition under which the action is taken.
The end entry deals with specifying options i.e. case sensitive insensitive, repeat, etc.
 
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 35204676
1,$  means from line 1 to the end of file

s means substitute

s?/lib/ ?/lib32/ ?g  means substitute all occurances of /lib/ with /lib32/
s?-q64??g means substitute all occurences of -q64 with nothing, ie: delete it
s?/lib/sysliblist?/lib32/sysliblist?g means substitute all ocurrences of /lib/syslibist with /lib32/sysliblist
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give‚Ķ
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question