10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the bash below which does execute I am trying to extract the contents of ${id} is 1234, as ${id} stores the variable that changes each time.
After the path is removed the contents of ${id} are stored in pref, so they can be used in the output. Currently I am not able to extract the 1234 in the... (6 Replies)
Discussion started by: cmccabe
6 Replies
2. UNIX for Advanced & Expert Users
Hi,
I want to add prefix and suffix on line# 205 using SED or AWK and want to change on the same file without creating new file.
This command will be used in the bash script
Am using Bash shell
Regards
Nayaj (3 Replies)
Discussion started by: Nayaj
3 Replies
3. Red Hat
I was trying to install apache using the following url
Compiling and Installing - Apache HTTP Server
when I try to start http it prompts me the following error
oracle@localhost httpd-2.4.4]$ su -c '/usr/local/apache2/bin/apachectl -k start'
Password:
/usr/local/apache2/bin/httpd: ... (1 Reply)
Discussion started by: jediwannabe
1 Replies
4. UNIX for Dummies Questions & Answers
In unix when I run rm command, it asks for file removal confirmation e.g.
rm netmail_log.csv
rm: remove netmail_log.csv (yes/no)? n
But if i prefix backslash to rm it does not ask for confirmation. Does anyone know what backslash does to command or shell ?
e.g.
\rm netmail_log.csv (1 Reply)
Discussion started by: Devdatta
1 Replies
5. Shell Programming and Scripting
Hello All,
I have a file in the following format. I want to extract the date(020090930, 020090929) in the string "STPAGE020090930" and "STPAGE020090929" and prefix it to all lines below them. The output must be put into a new file.
STPAGE020090930
xyzz aalc... (3 Replies)
Discussion started by: john2022
3 Replies
6. UNIX for Dummies Questions & Answers
OK, now I just feel plain silly asking this. But I am very much a beginner at compiling and installing Unix software, so...
When setting the prefix, do you also have to specify the directory the files reside in? For example, lets say I am installing cURL in /usr/local
Would I set the prefix... (1 Reply)
Discussion started by: RobertSubnet
1 Replies
7. UNIX for Dummies Questions & Answers
I have a file:
chromosome1:436728
chromosome2:32892
.....
chromosome22:23781
I just want to get the number, not the prefix "chromosomeX", so I want to remove all the prefix ahead of the numbers. How can I do that?? Thanks!!! (PS: give me some very simple command so that I can understand... (4 Replies)
Discussion started by: kaixinsjtu
4 Replies
8. Shell Programming and Scripting
I]hi all
i am in confusion since last 2 days :(
i posted thraed yesterday and some friends did help but still i couldnt get solution to my problem
let it be very clear
i have a long log file of alkatel switch and i have to seperate the minor major and critical alarms shown by ! , !! and !!!... (6 Replies)
Discussion started by: nabmufti
6 Replies
9. Shell Programming and Scripting
hi
In the foll example the whole text in a single line....
i want to extract text from IPTel to RTCPBase.h.
want to use this acrooss the whole file
Updated: IPTel\platform\core\include\RTCPBase.h \main\MWS2051_Sablime_Int\1... (7 Replies)
Discussion started by: manish205
7 Replies
10. Shell Programming and Scripting
Hi
Input File:
export NAME='AA.BB.CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX.YY.ZZ'
Out File
export NAME='AA/BB/CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX/YY/ZZ'
Only the Lines which have export and have alphabets after =... (9 Replies)
Discussion started by: pbsrinivas
9 Replies