Search Results

Search: Posts Made By: Ramesh M
2,383
Posted By Ramesh M
.....
.....
1,270
Posted By Ramesh M
Yes!!
Yes!!
1,187
Posted By Ramesh M
grep -v "^#" file | wc -l v - Invert...
grep -v "^#" file | wc -l

v - Invert the sense of matching, to select non-matching lines
1,270
Posted By Ramesh M
Case signal
Task 1:

#!/bin/ksh

if [ $# -lt 2 ]
then
echo "Usage : $0 Signalnumber PID"
exit
fi

case "$1" in

1) echo "Sending SIGHUP signal"
kill -SIGHUP $2
;;
2) echo "Sending SIGINT...
2,196
Posted By Ramesh M
OFS print awk
file:
sasa|asasa|asasa|asas
erer|Erer|rere|ererer

Output needed :
sasa:asasa:asasa:asas
erer:Erer:rere:ererer


Im getting output, when i use the $1,$2.
awk -F'|' 'BEGIN{OFS=":";}...
1,914
Posted By Ramesh M
Ya its working... NR is number of records...
Ya its working...

NR is number of records in the input file right, could you tell me why NR isn't working here?
1,914
Posted By Ramesh M
Avg using awk
Coins:

gold 1 1986 USA American Eagle
gold 1 1908 Austria-Hungary Franz Josef 100 Korona
silver 10 1981 USA ingot
gold 1 1984 Switzerland ingot
gold 1 1979 RSA Krugerrand
gold 0.5 1981 RSA...
1,667
Posted By Ramesh M
Great Thanks . Its working !!!
Great Thanks . Its working !!!
1,667
Posted By Ramesh M
Search two patterns using awk to print the variable sum
Coins.txt:

gold 1 1986 USA American Eagle
gold 1 1908 Austria-Hungary Franz Josef 100 Korona
silver 10 1981 USA ingot
gold 1 1984 Switzerland ingot
gold 1 1979 RSA Krugerrand
gold 0.5 1981...
2,596
Posted By Ramesh M
Simple example for soft and hard links
Hai,
give me a simple example for soft and hard links.

this will work for soft link ?? ln -s [target file] [symbolic file]
Showing results 1 to 10 of 10

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