10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have the follwoing requirement
I have a file as follows:
# cat priy
yyy.poweroff_cmd = /sbin/poweroff
hhh.powersave-nap = 1
When this file is provided as input, I first used "awk" command and saved variables present after "="
replace=$line
replace1=`echo $line | awk -F "="... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
2. Red Hat
Hi All,
Please let me know that how to start Fedora 11 in command line mode and skip damaged programs ??
Scenario being:
I have Fedora 11 ( pretty ole... eh !! ). If I try to start the PC , then after some steps of startup... it just hangs and does not boots. I tried entering the mode... (4 Replies)
Discussion started by: dipanchandra
4 Replies
3. UNIX for Advanced & Expert Users
Hi all,
I'm new in unix. Need some help here.
I have a file called server.cfg which contains the servers name, if I don't want to run on that server, I'll put a "#" infront it.
username1@hostname.com
username2@hostname.com
#username3@hostname.com
#username4@hostname.com... (17 Replies)
Discussion started by: beezy
17 Replies
4. Shell Programming and Scripting
Hi All
I have a sample file like below:
012312112
1372422843 1236712
1372422843 1275127
3109301010
from which I wan't to:
1.)delete... (10 Replies)
Discussion started by: swasid
10 Replies
5. Shell Programming and Scripting
Hi Gurus,
I did an exhaustive search for finding the script using "sed" to exclude the first line of file during find and replace.
The first line in my file is the header names.
Thanks for your help.. (4 Replies)
Discussion started by: ks_reddy
4 Replies
6. Shell Programming and Scripting
HI All,
I am trying to split a xml using awk. now the issue is i want to skip three lines from the xml file. first two and last one based on pattern. plz some one help. i am new to awk and struggling :wall:
<?xml version="1.0"?>
<notification>
.....
.....
.....
.....
........ (24 Replies)
Discussion started by: ganesan kulasek
24 Replies
7. Shell Programming and Scripting
How to skip first line of the script in shell, using python. (3 Replies)
Discussion started by: KarthikPS
3 Replies
8. UNIX for Dummies Questions & Answers
Folks,
how do i skip the first line in a csv, while doing the read of a csv file in to a variable line by line.
eg :
do
echo $line
done < $rpt
where rpt is path to csv file
The initial 1st line is a garbage that i want to avoid, and start reading from 2nd line
... (2 Replies)
Discussion started by: venu
2 Replies
9. Shell Programming and Scripting
I have a record like the one given below.
010000306551~IN ~N~ |WINDWARD PK|Alpharetta|
If ~ is present more than instance in a line,then I need to delete those instances.
Any ideas?
I am working in Solaris (7 Replies)
Discussion started by: prasperl
7 Replies
10. Shell Programming and Scripting
Hi.
This is what I coded:
tput cup $1 $2 # place cursor on row and col
tput clear # clear the screen
bold=`tput smso` #set stand-out mode - bold
offbold=`tput rmso` # reset screen - turn bold off
echo $bold # turn bold on
tput cup 10 20; echo "Type Last Name:" #bold caption
tput cup 12... (3 Replies)
Discussion started by: Ccccc
3 Replies