Search Results

Search: Posts Made By: lisheen
1,739
Posted By lisheen
Here's your awk command included in a bash script...
Here's your awk command included in a bash script

#!/bin/bash
echo "Printing from line $1 to line $2"
awk "NR>$1&&NR<$2 {print \$0}" $3
1,739
Posted By lisheen
Here's a simple shell script that will generate...
Here's a simple shell script that will generate the same output that
your awk command would produce:

#!/bin/bash
echo "Login time for $1:"
w | grep $1 | awk '{print $4}'


Save that text...
4,256
Posted By lisheen
cat /dev/null
cat /dev/null > file.txt
1,548
Posted By lisheen
If I run the following in march I get 12: %...
If I run the following in march I get 12:

% date -d"3 months ago" "+%m"
12

So, I suppose so your command will work for you
Forum: Programming 01-08-2008
151,681
Posted By lisheen
The compiler doesn't know what size the structure...
The compiler doesn't know what size the structure 'timezone' is.

Have you included sys/time.h ?
Showing results 1 to 5 of 5

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