10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am on Linux LXLE.
I been trying to change directories and opens folders and files.
1. I cd /home file
2. then user (/home/teak/)
Then I try to open the Document file, wouldn't it be /home/teak/doument? . It responds not a directory. So how would I open the document file, or not... (3 Replies)
Discussion started by: teak
3 Replies
2. Shell Programming and Scripting
Hello guys,
I am trying to create simple script which will show user GUI and redirect him to folder which he will chose based on his action, the folder is variable which has to be selected by user, the rest of the script updates/copies/removes values in that folder.
it is quite simple to... (2 Replies)
Discussion started by: defila
2 Replies
3. Shell Programming and Scripting
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Getting the below error.
rm *.txt
bash: /usr/bin/rm: Arg list too long
I understand the error is because there are lakhs of .txt file.
Any fix ? (16 Replies)
Discussion started by: mohtashims
16 Replies
5. Shell Programming and Scripting
Hi,
I am using tr command like below:
cat file_name | tr -c "" "" > output_file
When i run my script from command mode, it is working fine. I scheduled my job in autosys. When the job runs at specified I am getting below Error:
tr: when translating with complemented character... (5 Replies)
Discussion started by: Karteek
5 Replies
6. Shell Programming and Scripting
I am trying to show out the character count of a file if greater than 500 characters. When I do the -m its show the size of the file and not the characters in the file. Where am I getting confused? Or is -c and -m the same thing? Code is below
if ;
then
echo "Char... (3 Replies)
Discussion started by: tvb2727
3 Replies
7. Shell Programming and Scripting
dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152
dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large
The dd commad fails here saying its truncating if I try same command with less value for seek it works
dd if=/dev/zero... (3 Replies)
Discussion started by: amol28kulkarni
3 Replies
8. UNIX for Dummies Questions & Answers
Hello Guys...
I am a newbie to Unix. I am having a requirement, Like in a file, I want to count the number of characters,
I used wc -c and wc -m, But both are giving the byte count instead of character count.
Please help me guys... Its very very urgent.
Really appreciate ur help..
... (5 Replies)
Discussion started by: mraghunandanan
5 Replies
9. UNIX for Dummies Questions & Answers
All,
I have files in directory,when i try to overwrite those files it gave operation not permitted error. I am using same group user (ina2) while overwritng this file.
Sample file :
-rw-rw-r-- 1 ina1 indev 316 Jun 06 13:44 ONCTEST.dat
Error:
cp: /proj/out/ONCTEST.dat: Operation... (4 Replies)
Discussion started by: sai_nj
4 Replies
10. Shell Programming and Scripting
Hi all,
I have a shell script(ksh) which has the code as follows.
------------------
cd $mydir
for i in `find ./ -type f -mtime +$k`
do
echo $i
done
-----------------------
And in $mydir , i have some files which have space in theie names like "Case att15".
The out put of the... (6 Replies)
Discussion started by: rajugp1
6 Replies
cal(1) User Commands cal(1)
NAME
cal - display a calendar
SYNOPSIS
cal [ [month] year]
DESCRIPTION
The cal utility writes a Gregorian calendar to standard output. If the year operand is specified, a calendar for that year is written. If
no operands are specified, a calendar for the current month is written.
OPERANDS
The following operands are supported:
month Specify the month to be displayed, represented as a decimal integer from 1 (January) to 12 (December). The default is the current
month.
year Specify the year for which the calendar is displayed, represented as a decimal integer from 1 to 9999. The default is the current
year.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of cal: LANG, LC_ALL, LC_CTYPE, LC_TIME,
LC_MESSAGES, and NLSPATH.
TZ Determine the timezone used to calculate the value of the current month.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
calendar(1), attributes(5), environ(5), standards(5)
NOTES
An unusual calendar is printed for September 1752. That is the month 11 days were skipped to make up for lack of leap year adjustments. To
see this calendar, type:
cal 9 1752
The command cal 83 refers to the year 83, not 1983.
The year is always considered to start in January.
SunOS 5.10 1 Feb 1995 cal(1)