Search Results

Search: Posts Made By: silvermax
10,275
Posted By silvermax
npk2210, if you are talking about adding the line...
npk2210, if you are talking about adding the line count of the files this will work.

#!/bin/ksh

one=`wc -l a.txt|awk '{print $1}'`
two=`wc -l b.txt|awk '{print $1}'`

echo "$one $two" |awk...
9,822
Posted By silvermax
echo "Please enter your full name:" read first...
echo "Please enter your full name:"
read first last
echo $last

as long as the user input has a space between John & Doe then
$first=John
$last=Doe
11,295
Posted By silvermax
when you set the below variable, "CST" needs to...
when you set the below variable, "CST" needs to be the time zone your in and you may need to change what character the cut starts at in order to get the full file name. :)

DATE_STAMP=`TZ=CST+24...
2,172
Posted By silvermax
let me re-word the question :)
I apologize if my request comes across as trivial or somehow looking like school work it was not my intention for it to appear that way, I was merely trying to put what I needed in the most simplest...
2,172
Posted By silvermax
Using the Read command with grep
I am still fairly new to unix scripting and I will try my best to explain my question the best I can....

I have a text file called hello.txt, and in this file I need to search every line that...
Showing results 1 to 5 of 5

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