Search Results

Search: Posts Made By: maxim42
1,771
Posted By Jairaj
Try this: awk '{sum+=$1} END {print sum}'...
Try this:

awk '{sum+=$1} END {print sum}' file
1,771
Posted By sathyaonnuix
Try this: cat file | awk '{ sum+=$1} END {print...
Try this:
cat file | awk '{ sum+=$1} END {print sum}'
1,433
Posted By sathyaonnuix
thats equivalent to print $0, means prints all...
thats equivalent to print $0, means prints all the contents.

# awk 'BEGIN{FS=OFS=","}
$1 !~ /^0/{$1="0"$1}
$2 !~ /^0/{$2="1234"$2} {print $0}' file
...
1,433
Posted By pamu
awk 'BEGIN{FS=OFS=","} $1 !~ /^0/{$1="0"$1}...
awk 'BEGIN{FS=OFS=","}
$1 !~ /^0/{$1="0"$1}
$2 !~ /^0/{$2="1234"$2}1' file
3,057
Posted By Subbeh
ls -m > output.txt should do the trick
ls -m > output.txt should do the trick
2,423
Posted By mjf
The below will find all files in current...
The below will find all files in current directory that were created/last modified on given date and then will search in those files for any word.


ls -l | grep "Dec 12" | awk '{print $NF}' |...
2,423
Posted By EAGL€
find /path/to/dir -type f -name "filename" -mtime...
find /path/to/dir -type f -name "filename" -mtime -1 2>/dev/null | xargs grep -iw "word"

filename could be *.txt , *abc*txt etc.
-mtime -1 means modification(or creation time) less than 1 day
Showing results 1 to 7 of 7

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